text-to-speech

Android TextToSpeech addSpeech() is not working

心已入冬 提交于 2019-12-24 09:36:57
问题 I have an HD Desire phone with android 2.3. The TTS is working fine and it speaks every text I give. But when I use this either of the lines below to set my own voice for some texts, it simply ignores it and synthesizes the text, just like the line is not written! tts.addSpeech("salam", "/sdcard/salam.wav"); tts.addSpeech("shalam", "com.company.appname", R.raw.shalam); ... tts.speak("salam", TextToSpeech.QUEUE_FLUSH, null); //<--This isn't playing my voice file. tts.speak("shalam",

python text translation to speech

不羁岁月 提交于 2019-12-24 08:19:04
问题 I am working on testing text translation (from English to other language) and translation to audio code using python. I am using google translate api for translation and win32 for audio. While testing i found that google supports https://gist.github.com/jseabold/1473363 these languages. The translation part of code seem to be working fine for many options but audio part only works with a few languages (english , spanish , italian etc works). as you can see in example below I can see text is

Speechlib on Shared hosting - ASP.NET

自作多情 提交于 2019-12-24 07:52:25
问题 I am trying to use SpeechLib on my personal website. It's a very simple app that saves some text to a wav file - standard stuff. Works great on the dev machine. But all hell breaks loose when I deploy it to the shared host. Sometimes I get prompted for user name and password at the time of writing the wav file. Sometimes, I get the "Security exception". The site has full trust and I can write a simple txt file from my app without any issues. On scouring the internet, I realized that the

No response to a HTTP Get request in WebAPI in .NET 4.5 while using SpeechSynthesis for converting text to speech

a 夏天 提交于 2019-12-24 05:53:32
问题 I'm trying to setup a simple web service using WebAPI. Here is what I have for code: public class SpeakController : ApiController { // // api/speak public HttpResponseMessage Get(String textToConvert, String outputFile, string gender, string age = "Adult") { VoiceGender voiceGender = (VoiceGender)Enum.Parse(typeof(VoiceGender), gender); VoiceAge voiceAge = (VoiceAge)Enum.Parse(typeof(VoiceAge), age); using (SpeechSynthesizer synthesizer = new SpeechSynthesizer()) { synthesizer

Speech to text and Text to speech at same time

旧巷老猫 提交于 2019-12-24 05:28:11
问题 INTRODUCTION I'm developing an app where I need to use booth SpeechRecognizer and TTS. But I'm facing some problems while trying this. The main one is that if I initialize TTS, SpeechRecgonizer seems not to work, and If I disable TTS, then SpeechRecognizer works fine. Next there is code snipet with the relevant code: CODE public class GameActivity extends Activity implements OnInitListener { private static TextToSpeech tts; @Override public void onCreate(Bundle savedInstanceState) { super

.NET Text To Speech Volume

百般思念 提交于 2019-12-24 03:49:15
问题 I am working with a simple Text to Speech application using the System.Speech.Synthesis reference. I would like to add a slider control to the application and control the volume of the speech with it. In order to set the volume I'm using: speech.Volume = 100; Do I need to use some kind of event handler in order to update this value? By the way I'm creating this as a WPF application with C# (please not VB.NET code). 回答1: <Slider Ticks="1, 2, 3, 4, 5, 6, 7, 8, 9, 10" Value="1" Delay="100"

TTS *and* Speech Input simultaneously?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 03:25:23
问题 I noticed that as soon as a voice recognition activity starts, text-to-speech output stops. I understand the rational: TTS output could be "heard" by the voice recognition engine and interfere with its proper operation. My question: Is this behavior hard-coded into the system, or can it be modified by a setting or parameter (in the API)? 回答1: Must the activity simultaneously use recognition and TTS? If the recognition can wait (functionally speaking), force the event to spawn the

Call TextToSpeech Activity Without Any UI Display

二次信任 提交于 2019-12-24 02:42:52
问题 What is the recommended way to call TextToSpeech without invoking any UI change? The examples given are all bound to Activities, and the default behavior for an activity is to display its own UI. I'm trying to call a TextToSpeechActivity via my main activity via an Intent. I don't want the UI to change at all. I want the TextToSpeech to sound without anything in the UI changing. Here's what I have so far. public class MyActivity extends Activity { public void onClick(View v) { Intent intent =

Can't save to wav from python, can't import SpeechLib from comtypes.gen, what next?

时间秒杀一切 提交于 2019-12-24 02:37:10
问题 First the setup: Windows 8.1 64bit, Python 3.4 32bit. I wanted to run the code here. So I installed comtypes pip install comtypes I then tried to run the code, i got ImportError: cannot import name 'SpeechLib' Then tried this code here to try and generate the needed SpeechLib module. I am however still getting the same error, what should I try next? 回答1: Running these lines made it work: from comtypes.client import CreateObject engine = CreateObject("SAPI.SpVoice") stream = CreateObject("SAPI

Alternative TTS engine? [closed]

匆匆过客 提交于 2019-12-23 23:08:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have an android app that has a very nice voice when speaking English, and it is a different voice from the one in my tablet by default (Google TTS) How did they do that ? Is it possible to download tts packages, and integrate them in an app easily ? I managed to do text to speech easily with the user's default