Safari browser on iPhone 14 Pro (ios 17.1), Web Speech API encountered problems after Bluetooth speaker connection

Problems when connecting Bluetooth speakers on iOS devices. When trying to use the Web Speech Api -(Text-To-Speech) in safari immediately after connecting to a Bluetooth speaker, it playing the sound using the phone's speakers instead of the connected Bluetooth speaker's. Then, when I summon Siri and briefly use the voice function, the Web Speech API in the web browser uses the Bluetooth speaker, and it works. It seems that there may be some kind of limitation or issue when switching between Bluetooth devices and voice apis.

  • js:

    // Create SpeechSynthesisUtterance var utterance = new SpeechSynthesisUtterance('Hello');

    utterance.lang = 'en-US';

    speechSynthesis.speak(utterance);

Add a Comment