text-to-speech

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

你离开我真会死。 提交于 2019-12-01 09:27:48
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 synth.GetInstalledVoices()) { VoiceInfo info = voice.VoiceInfo; Console.WriteLine(" Voice Name: " +

How to Predict Failure of Google Text-to-Speech?

南笙酒味 提交于 2019-12-01 08:13:39
On Android, when using a TextToSpeech instance that uses the Google text to speech engine, it seems as though the method isLanguageAvailable() is unreliable. I say this because there are many instances where this method will return "success" (0,1,or 2), but subsequent speak() commands only results in silence. The case I am testing is a Samsung S5 with API 23. It is in airplane mode (no network). I'm assuming that the reason is at least partly because there is no network and therefore it can neither download and install new voices, nor use cloud-based voices. But then shouldn't

Android TTS speech synthesizer

我只是一个虾纸丫 提交于 2019-12-01 08:09:05
问题 I want to know whether is there any way I can save the input to the android speaker.I mean save the current voice being played by the speaker.This I need because android TTS speech synthesizer doesn't work.So I cannot save the audio,I can just play it. Thanking you, Sreekanth 回答1: Solved the issue by the following code (android TTS started working) public class TextToSpeechActivity extends Activity implements OnInitListener { private static TextToSpeech mTts; private int MY_DATA_CHECK_CODE =

Android TTS not working in device

本秂侑毒 提交于 2019-12-01 08:07:09
The TextToSpeech like in http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html works fine on the Emulator but does not work on my device (galaxy s).. is there anything extra that I need to install? Thanks in advance.. What language are you using? If your device doesn't have the language installed, it, obviously, can't play it. If it's anything but US, try that. If so then please post your code. On my Captivate, I had to manually install (prompted by Google Navigation) the TTS data files to enable speech directions. This may have been

TTS for Chinese is throwing SAPI ERROR E_FAIL

痞子三分冷 提交于 2019-12-01 07:50:01
问题 This is my code for Chinese TTS which is failing in the speak function although Chinese TTS engine is installed successfully using Microsoft.Speech.Synthesis; using System.Globalization; namespace TTS3 { class Program { static void Main(string[] args) { //CultureInfo=new CultureInfo("zh-CN"); SpeechSynthesizer synth = new SpeechSynthesizer(); // Output information about all of the installed voices. foreach (InstalledVoice voice in synth.GetInstalledVoices(new CultureInfo("zh-CN"))) { synth

Android TTS not working in device

给你一囗甜甜゛ 提交于 2019-12-01 07:15:45
问题 The TextToSpeech like in http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/TextToSpeechActivity.html works fine on the Emulator but does not work on my device (galaxy s).. is there anything extra that I need to install? Thanks in advance.. 回答1: What language are you using? If your device doesn't have the language installed, it, obviously, can't play it. If it's anything but US, try that. If so then please post your code. 回答2: On my Captivate, I had to

Chinese TTS Fails, while English works

痞子三分冷 提交于 2019-12-01 06:37:49
问题 I just installed the Microsoft speech SDK 11 and added 2 different Runtime languages for english and chinese. English seems to run fine, though chinese throws me this error System.InvalidOperationException with additional information Speak error '80004005' for the line synth.Speak(s); in the following code using System; using Microsoft.Speech.Synthesis; namespace SampleSynthesis { class Program { static void Main(string[] args) { speakString(0, "Hello, I'm TTS."); } static void speakString

iOS 13 Text To Speech (TTS - AVSpeechSynthesisVoice) crashes for some users after update

你。 提交于 2019-12-01 06:34:54
问题 We are seeing a weird crashes for a small percentage of users related to a problem of TTS after updating to iOS 13. Anybody any idea why this happens? Anybody seeing the same crashes? let voices = AVSpeechSynthesisVoice.speechVoices() for voice in voices { if voice.name == storedName { synthVoice = voice break } } ... let utterance = AVSpeechUtterance(string: text) utterance.voice = self.synthVoice self.synthesizer.speak(utterance) Crashlog: Error: Fatal Exception: std::logic_error: Unable to

TTS-UtteranceProgressListener not being called

无人久伴 提交于 2019-12-01 02:39:35
I don't want to put all my code here, so I'm just putting the relevant pieces. If you need more, feel free to ask. I'm using Text To Speech (TTS) which leads to a speech listener after it asks a question... I found through Log outputs that TTS's onInit is being called, but the UtteranceProgressListener is not and I can't figure out why. Any help is appreciated. // ---Initialize TTS variables--- // Implement Text to speech feature tts = new TextToSpeech(this, new ttsInitListener()); // set listener to the TTS engine tts.setOnUtteranceProgressListener(new ttsUtteranceListener()); if (!tts

UWP suitable project solution

半世苍凉 提交于 2019-12-01 00:22:08
I want rewrite C# Winforms desktop application to Universal Windows Platform , but first of all I'm trying to figure out, what should be suitable for my goal. The reason why I want to use UWP is a quality of Speech Recognition, (maybe also work on other devices, but this is currently very secondary). Here is my previous question Speech recognition for windows desktop application where advised to use UWP with Speech recognition Quickstart: Recognize speech with the Speech SDK for .NET Framework I developing non-commercial, personal, and actively used application, which requires better quality