text-to-speech

C# SpeechSynthesizer - “No voice installed on the system”

孤街醉人 提交于 2019-12-11 13:53:15
问题 I have tried to make a simple console program which uses SpeechSynthesizer from System.Speech.Synthesis to convert text to speech but it doesn't work. I am using 64-bit Windows 7 and Visual Studio 2010 (with .NET Framework 4.0 I think?) The program: using System.Speech.Synthesis; // *skip* SpeechSynthesizer speech = new SpeechSynthesizer(); speech.SetOutputToDefaultAudioDevice(); speech.Speak("Hello world"); InvalidOperationException occurs at line speech.Speak(...) with message No voice

encoding mp3 from a audio stream of PyTTS

99封情书 提交于 2019-12-11 13:51:44
问题 I work on text-to-speech trasforming text, in audio mp3 files, using python 2.5. I use pyTSS as a python Text-To-Speech module, to transform text in audio .wav files (in pyTTS is not possible to encode in mp3 format directly). So after that, I code these wav files, in mp3 format, using lame command line encoder. Now, the problem is that, I would like to insert (in particular point of an audio mp3 file, between two words) a particular external sound file (like a sound warning) or (if possible

Android Google TTS - select voice variant programmatically

六眼飞鱼酱① 提交于 2019-12-11 11:41:57
问题 Google TTS voices on Android, at least for some language/country pairs, come with male and female variants - for example English United Kingdom, has both low and high quality male and female voices. Yet the Google TTS engine, when enumerating voices with TextToSpeech.Engine.ACTION_CHECK_TTS_DATA intent, lists only language-country locales, without the variant, e.g. eng-gbr, eng-usa. When calling the tts.setLanguage(locale), I tried adding the variant like "eng-gbr-male" or "eng-gbr-Male", but

Google cloud text-to-speech : the server responded with a status of 403 ()

假装没事ソ 提交于 2019-12-11 11:24:41
问题 I am trying to build a web page which will translate the text into mp3 using google cloud text-to-speech. After lots of search I found using REST API I can request the API to translate the text into mp3. I am using JQuery and AJAX for the HTTP request. Problem is that I am requesting the cloud server to translate the text using following data, "data" : { "input": { "text": encodeURIComponent(text) }, "voice" : { "languageCode" : "en-US", "name" : "en-US-Wavenet-A", }, "audioConfig" : {

System.Speech throws “No voice installed on the system or none available with the current security setting” exception in Windows Service

女生的网名这么多〃 提交于 2019-12-11 11:23:43
问题 Long time reader, first time poster. I'm developing a Windows Service in C# .Net 3.5 to perform Text to Speech operations. I'm using System.Speech (Microsoft Speech API 3.x). I deployed the service to a Win2008 x64 server and it's now throwing the following exception: System.InvalidOperationException: No voice installed on the system or none available with the current security setting. at System.Speech.Internal.Synthesis.VoiceSynthesis.Speak(Prompt prompt) at System.Speech.Synthesis

Microsoft Sam, SAPI alternatives

╄→гoц情女王★ 提交于 2019-12-11 11:18:45
问题 We have a application that we were planing to use Microsoft speech API for. Now we tested it on Windows XP using Microsoft Sam voice and frankly it sound terrible ... It's almost impossible to hear what the voice is trying to say. Are there other, better voice. Are there any updates or newer versions out there that are better. Are there other product, open source projects etc that can work as an alternative? Just to clarify - It needs to have some sort of API so I actually can program against

Can Hebrew be used with TextToSpeech and YandexTranslate?

笑着哭i 提交于 2019-12-11 10:18:29
问题 When I try the following (i.e., spoken Hebrew) in App Inventor 2, I hear nothing: However, the following (switching parameters to spoken English) works just fine: Note that I change the variables "language", "country", "setance", and "hebrew_sentance" to switch between spoken English (which succeeds) and spoken Hebrew (which fails). Is it possible to get ai2 to speak Hebrew? 回答1: The MIT APP inventor support 65 languages and communicates 40 languages from text to speech. The problem is not in

Text to speech works on emulator but not on phone

南笙酒味 提交于 2019-12-11 09:28:35
问题 I have gone through almost all the links related to this topic but haven't found any suitable answer. I am trying to build a basic text to speech application. It works perfectly fine on the emulator. But when i run it on my phone, it shows language not supported. I guess this has something to do with the locale. The default locale set in my phone is en_US My code is as follows: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout

iOS 10.3 text to speech works on simulator but not on device

若如初见. 提交于 2019-12-11 09:16:37
问题 I'm calling text to speech for the French language. This works as expected on: iOS 9.3 simulator, iOS 9.3 device ( iPad 3rd gen ), iOS 10.3 simulator. Does not work (silently) on iOS 10.3 device ( iPhone 6s ). Default French voice is installed and works according to device settings. static AVSpeechSynthesizer* synthesizer = NULL; //... +(void)readText:(NSString*)text { if(synthesizer == NULL) synthesizer = [[AVSpeechSynthesizer alloc] init]; AVSpeechUtterance *utterance = [AVSpeechUtterance

How to properly dispose of SpeechSynthesizer for async text-to-speech?

我只是一个虾纸丫 提交于 2019-12-11 07:31:43
问题 I have a form and I want to allow the user to receive asynchronous text-to-speech output based on the content of a text box whenever a button is pressed. For context, this form is launched as part of an "internal" C# function within VoiceAttack, and this is a continuation of a previous question. This snippet does the job nicely: SpeechSynthesizer synth = new SpeechSynthesizer(); // Create new SpeechSynthesizer instance // Function for asynchronous voicing of text with text-to-speech public