Speech to Text app development in IDX

Hi, i’m a non-coder trying to use/learn IDX to build flutter apps. First project is a speech-to-text app i’ve gotten to the point of trying to test the app in Web Preview. I am coming across a ‘Error requesting microphone permission: NotAllowedError: Permission denied’ message and can’t figure out how to enable microphone access. I’ve asked the IDX Gemini Interactice Chat, Google AI Studio. According to AI Studio:

1. Checking Browser Permissions in Project IDX

Since the preview of your application is presented in a browser tab, you’ll check the permissions of the browser you’re using to view IDX. Here’s how:

  • Using Chrome (or a Chromium-based browser):

    1. Open the IDX Preview: Open the browser window with the application preview running in it.

    2. Access Settings: In the browser tab where you are viewing the IDX preview, enter chrome://settings/content/microphone in the address bar and press enter.

    3. Review Settings: Examine the lists for “Allowed to use your microphone” and “Not allowed to use your microphone.” If your IDX preview’s URL (or a pattern that matches it) is in the “Not allowed” list, remove it by clicking the trash can icon. You may also want to add your IDX url to the “Allowed” list to ensure the application has microphone permissions.

    4. Clear data : You can also clear the site’s data, including permissions and site data to get the microphone permissions prompt to show up again.

    5. Restart: After making changes, you should restart the application preview tab to ensure settings take effect.

  • Using Other Browsers: The process will be similar, but the specific steps to access the microphone settings might be different. Look for “Settings,” “Preferences,” “Privacy,” or “Permissions” sections.

I’m stuck and can’t test the app - any suggestions or help would be greatly appreciated! TIA

When you preview your page in a separate window (not with all of the IDX UI also displaying), are you able to see the browser permission settings better?

1 Like

when i move the Preview to a New Window, I get ’ workstations.cloud.google.com refused to connect.’

Are you pressing this button to open the preview in a new window?

2 Likes

that did it! Thank you so much! I was using the Web Preview tab embedded in IDX.