speech-synthesis

Can't Chrome's speechSynthesis work offline?

懵懂的女人 提交于 2019-11-28 03:39:45
问题 I was playing with Chrome's speechSynthesis msg = new SpeechSynthesisUtterance("some text"); msg.lang = "fr-FR" ; window.speechSynthesis.speak(msg); when I discovered this strange issue : it can't speak anymore if your device is offline. I searched the web but did not find any explanation. Can't this work offline ? (If you know the reason why it needs to be online, please tell me it too in the comments.) 回答1: Speech synthesis voices are either local on the device or come from remote speech

Android TTS male voices

烈酒焚心 提交于 2019-11-28 01:45:33
Is it possible to install and configure some male voices on android.speech.tts.Voice ? I have read some news that Android had made some available recently, but I can't find or configure any. All the ones that I try with command tts.setLanguage(Locale.ITALY); are female. No, not at present. An enhancement request is needed so that the gender can be included in the Voice Feature Set , such that: Voice[Name: en-AU-afi-network, locale: en_AU, quality: 500, latency: 400, requiresNetwork: true, features: [networkTimeoutMs, networkRetriesCount, male ]] I have sent emails to Text to Speech providers

Setting language for TTS programmatically?

我的未来我决定 提交于 2019-11-27 16:30:57
问题 I have written a small Android Demo to use TTS in different languages. I have a layout with two buttons, Spanish and English. Pressing the button triggers an utterance in the language selected. However, I can't change the language (setLanguage (Locale locale)). I can do it by hand, using the phone settings and changing the TTS language to US, UK, Italian, German, etc, but my code doesn't seem to work. Could you tell me where the problem is? Thank you!! package com.ignacio.SpeakAPP; import

pyttsx: No module named 'engine'

时间秒杀一切 提交于 2019-11-27 13:11:16
I'm trying to install TTS package by using this . Everything was okay until I tried to execute the following command: import pyttsx I got back this error: File "/usr/local/lib/python3.4/dist-packages/pyttsx/__init__.py", line 18, in module <br> from engine import Engine<br> ImportError: No module named 'engine' Any help would be appreciated. Thank you! Natesh bhat Guys there is an updated package compatible with Python3 : pyttsx3 Works offline with no delay in the sound produced. Installation: pip install pyttsx3 Visit https://pyttsx3.readthedocs.io for the full usage docs. Thanks! csheehey

Chrome Speech Synthesis with longer texts

寵の児 提交于 2019-11-27 10:36:58
I am getting a problem when trying to use Speech Synthesis API in Chrome 33. It works perfectly with a shorter text, but if I try longer text, it just stops in the middle. After it has stopped once like that, the Speech Synthesis does not work anywhere within Chrome until the browser is restarted. Example code ( http://jsfiddle.net/Mdm47/1/ ): function speak(text) { var msg = new SpeechSynthesisUtterance(); var voices = speechSynthesis.getVoices(); msg.voice = voices[10]; msg.voiceURI = 'native'; msg.volume = 1; msg.rate = 1; msg.pitch = 2; msg.text = text; msg.lang = 'en-US'; speechSynthesis

Android TTS male voices

…衆ロ難τιáo~ 提交于 2019-11-27 04:44:18
问题 Is it possible to install and configure some male voices on android.speech.tts.Voice ? I have read some news that Android had made some available recently, but I can't find or configure any. All the ones that I try with command tts.setLanguage(Locale.ITALY); are female. 回答1: No, not at present. An enhancement request is needed so that the gender can be included in the Voice Feature Set, such that: Voice[Name: en-AU-afi-network, locale: en_AU, quality: 500, latency: 400, requiresNetwork: true,

Chrome Speech Synthesis with longer texts

可紊 提交于 2019-11-26 15:15:31
问题 I am getting a problem when trying to use Speech Synthesis API in Chrome 33. It works perfectly with a shorter text, but if I try longer text, it just stops in the middle. After it has stopped once like that, the Speech Synthesis does not work anywhere within Chrome until the browser is restarted. Example code (http://jsfiddle.net/Mdm47/1/): function speak(text) { var msg = new SpeechSynthesisUtterance(); var voices = speechSynthesis.getVoices(); msg.voice = voices[10]; msg.voiceURI = 'native

Text-to-speech (voice generation) and speech-to-text (voice recognition) APIs?

∥☆過路亽.° 提交于 2019-11-26 14:22:51
Is there a comprehensive list of known APIs for desktop or browser environments? Michael Levy I'll rehash and update an answer from Speech recognition in C or Java or PHP? . This is by no means comprehensive, but it might be a start for you From watching these questions for few months, I've seen most developer choices break down like this: Windows folks - use the System.Speech features of .Net or Microsoft.Speech and install the free recognizers Microsoft provides. Windows 7 includes a full speech engine. Others are downloadable for free. There is a C++ API to the same engines known as SAPI.

Getting the list of voices in speechSynthesis (Web Speech API)

本小妞迷上赌 提交于 2019-11-26 04:26:06
问题 Following HTML shows empty array in console on first click: <!DOCTYPE html> <html> <head> <script> function test(){ console.log(window.speechSynthesis.getVoices()) } </script> </head> <body> <a href=\"#\" onclick=\"test()\">Test</a> </body> </html> In second click you will get the expected list. If you add onload event to call this function ( <body onload=\"test()\"> ), then you can get correct result on first click. Note that the first call on onload still doesn\'t work properly. It returns