speech-synthesis

SpeechSynthesisUtterance not working in mobile broswer

时光毁灭记忆、已成空白 提交于 2019-12-23 15:12:24
问题 I am using SpeechSynthesisUtterance in my mobile website. This code is okay when I use it in my desktop version website. But I found that the function is not working in mobile browser in document.ready as below: $(document).ready(function(){ var text_tts="say something"; speakText(text_tts); }); function speakText(text_tts){ var u = new SpeechSynthesisUtterance(); u.text = text_tts; u.lang = 'en-US'; u.rate = 1; u.onend = function(event) { console.log('Finished in ' + event.elapsedTime + '

What are the different between “Windows.Media.SpeechSynthesis” and “System.Speech.Synthesis”?

和自甴很熟 提交于 2019-12-22 12:29:14
问题 I'm trying t o determined which of the two APIs have more features to do text-to-speech in a pro application developed in C#. OS is not an issues here, just how of the two namespaces offer more features, quality voices and stability. Have any body master both tech and could tell me about the different in those two namespaces? Is one of them a super-set of the another in terms of features? EDIT: Behind of those two namespaces is the same speech synthesis engine ? My web app will do all the

How to change the voice in pyttsx3?

∥☆過路亽.° 提交于 2019-12-21 02:53:31
问题 This code is working but I'm only able to switch between the voices which came preInstalled in Microsoft Windows. These voices are "Microsoft David Mobile" and "Microsoft Zira Mobile". Later I installed "Microsoft Kalpana Mobile" and set it as the default Windows voice. But still I'm not able to switch to "Microsoft Kalpana Mobile". The code is- import pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) #changing index changes voices

web speech api - speech synthesis .lang property not working

本秂侑毒 提交于 2019-12-20 05:22:22
问题 im trying to use web speech api to transcript a word in Portuguese, i set the property to 'pt-BR' ( unfortunately Portuguese - european is not supported) but, always replies in english. Can someone help? Thanks code: <script type="text/javascript"> var synth = window.speechSynthesis; function falatarea(){ var utteranceY = new SpeechSynthesisUtterance(); utteranceY.text = "teste"; utteranceY.lang = "pt-BR"; utteranceY.voice = "pt-BR"; window.speechSynthesis.speak(utteranceY); } </script> 回答1:

Why can't I control the Apple macOS Speech Synthesis audio unit with slider values?

与世无争的帅哥 提交于 2019-12-19 17:34:24
问题 I'm working to incorporate Apple speech synthesis audio unit stuff (works only on macOS, not iOS) into AudioKit and I've built a AKSpeechSynthesizer Class (initially created by wangchou in this pull request) and a demo project both available on the develop branch of AudioKit. My project is very similar to this Cocoa Speech Synthesis Example but on this project, the rate variable can be changed and varied smoothly between a low number of words per minute (40) up to a high number (300 ish).

SpeechSynthesis in Android-Chrome: cannot change English voice from US English

放肆的年华 提交于 2019-12-19 09:52:29
问题 I'm using the speech synthesis API on Android-Chrome. The issue is that although there are 4 English voices available, it is always US English that is used by the browser, no matter what the code specifies. I can use other languages e.g. French, just not other English voices e.g en-AU, GB, or IN. This code filters British English voice objects from the getVoices array and uses the first to utter the word 'tomato'. The problem is that the word is always pronounced "to-may-lo" not "to-mar-to"

SpeechSynthesis in Android-Chrome: cannot change English voice from US English

主宰稳场 提交于 2019-12-19 09:52:22
问题 I'm using the speech synthesis API on Android-Chrome. The issue is that although there are 4 English voices available, it is always US English that is used by the browser, no matter what the code specifies. I can use other languages e.g. French, just not other English voices e.g en-AU, GB, or IN. This code filters British English voice objects from the getVoices array and uses the first to utter the word 'tomato'. The problem is that the word is always pronounced "to-may-lo" not "to-mar-to"

Microsoft.Speech.Synthesis does not work for Text To Speech BUT System.Speech.Synthesis works.Why?

核能气质少年 提交于 2019-12-19 09:40:39
问题 I just try to run simple microsoft example for Text To Speech using using Microsoft.Speech.dll; using System; using Microsoft.Speech.Synthesis; namespace TTS { class Program { public static void Main(string[] args) { Console.WriteLine("Testing TTS!"); // Initialize a new instance of the SpeechSynthesizer. using (SpeechSynthesizer synth = new SpeechSynthesizer()) { // Output information about all of the installed voices. Console.WriteLine("Installed voices -"); foreach (InstalledVoice voice in

pyttsx: No module named 'engine'

北战南征 提交于 2019-12-17 10:51:51
问题 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! 回答1: Guys there is an updated package compatible with Python3 : pyttsx3 Works offline with no delay in the sound produced. Installation: pip

Speech Synthesizer “Input string was not in a correct format”

拟墨画扇 提交于 2019-12-14 01:21:43
问题 Here is my code: string _message = "Hello world."; SpeechSynthesizer _synth = new SpeechSynthesizer(); Prompt _prompt = new Prompt(_message); _synth.Speak(_prompt); I can not for the life of me figure out what exactly is causing this error: "Input string was not in a correct format." The line that causes this error is when I call _synth.Speak(_prompt); EDIT: I have tried this code on my desktop computer and it works fine so something is wrong with my install on my laptop. Still I'm not too