function getMicPermEnableHelp() {
  const defaultMsg = 'Manually enable the microphone permissions for "Google Assistant" in the system settings';

  if (process.platform === 'darwin') {
    // If platform is "MacOS"

    return `
      You can follow either of the steps:
      <br />

      <ul>
        <li>${defaultMsg}</li>
        <li>
          Click this button

          <button
            style="margin-left: 10px;"
            onclick="electron.remote.systemPreferences.askForMediaAccess('microphone')"
          >
            Request microphone permission
          </button>
        </li>
      </ul>
    `;
  }

  if (process.platform !== 'win32' && isSnap()) {
    // If platform is any type of linux distro and application is a snap package.

    return `
      You can follow either of the steps:
      <br />

      <ul>
        <li>${defaultMsg}</li>
        <li>
          Type the following command in the <strong>terminal</strong>:
          <code class="codeblock">sudo snap connect g-assist:audio-record</code>
        </li>
      </ul>
    `;
  }

  // If platform is "Windows" or any linux distro (application not a snap package)
  return `You can ${defaultMsg.replace(/^M/, 'm')}`;
}
Returns help for granting microphone permission as an
HTML string.