text-to-speech

Can C# SAPI speak SSML string?

ぃ、小莉子 提交于 2019-12-05 18:49:54
I implemented a TTS in my C# WPF project. Previously, I use the TTS in System.Speech.Synthesis namespace to speak. The speaking content is in SSML format (Speech Synthesizer Markup Language, support customize the speaking rate, voice, emphasize) like following: <speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><prosody rate="x-fast">hello world. This is a long sentence speaking very fast!</prosody></speak> But unfortunately the System.Speech.Synthesis TTS has a memory leak problem, as I mentioned in question Memory leak in .Net Speech.Synthesizer? . So I decide

NullPointerException while using TTS in CustomListview

僤鯓⒐⒋嵵緔 提交于 2019-12-05 15:02:54
I have custom listview which contains content and TTS option,while using TTS its throwing null pointer exception,Listview is also not coming it showing my applicaton has stopped.Error is showing in Logcat. Applicationadapter.java public class ApplicationAdapter extends ArrayAdapter<Application> implements TextToSpeech.OnInitListener{ private List<Application> items; private LayoutInflater inflator; private MainActivity activity; private ProgressDialog dialog; public TextToSpeech tts; public ImageButton btnaudioprayer; public TextView text1; ArrayAdapter<String> adapter; public

Slow down Twilio's TwiML “Say” command for standard text on text-to-speech

ⅰ亾dé卋堺 提交于 2019-12-05 14:27:21
How can I slow down a normal content inside the "Say" verb? The spanish accent is VERY fast and most people have trouble following/understanding what is said. Ideally something like the following would be perfect: <Say voice="woman" language="es" speed="0.5">El siguiente mensaje se repetirá en español</Say> Note I made up the speed="0.5" param. That is not an option for twilio but slowing the reading of the content of that "Say" verb by half is what I am looking for. I don't think this is currently supported in any explicit way so ideas on how to accomplish this more hackish are welcome too.

Play an audio file as soon as Text To Speech is completed in Android

孤街浪徒 提交于 2019-12-05 14:12:39
I'm trying to develop an Android app where as soon as the text to speech is completed an audio file has to be played. How to do this? If I didn't get wrong idea, you want to use text-to-speech to read some text and store the speech audio into phone in the meantime? And play the audio later? Have you checked AudioRecordTest ? You can record audio and then play it later. Worth to try but I don't think you can get a good quality from the microphone. Hope this helps:) By the way, as far as I know, android only support to record from mic for unrooted phone, which you can check here . Let me know if

TextToSpeech and memory leak

陌路散爱 提交于 2019-12-05 13:10:42
I've been having app crashes due to an out-of-memory condition (in the program, not the programmer). MAT shows that copies of my Activity were sometimes being retained across screen rotations, and the only object keeping the bogus copies alive was each instance's TextToSpeech object. I can duplicate this behaviour using this snippet: public class MainActivity extends Activity { TextToSpeech mTts; char[] mBigChunk = new char[1000000]; // not used; just makes MainActivity instances easier to see in MAT @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

How to pass a string + web url and receive the response using python [closed]

大城市里の小女人 提交于 2019-12-05 11:39:53
I'm using Python and Google Translate. When I click on Listen while translating, a sound file is generated and a URL is passed like so: http://translate.google.com/translate_tts?tl=en&q=text . I want to generate URLs locally using Python then send them to the web and receive these sound files from Google Translate. I tried a lot of URLlib2 and URLparse but I have no clue about what I need to do to make this work. You need to change the user-agent so that the website thinks you are connecting with a browser. Try the following bit of code: import urllib2 url = "http://translate.google.com

Android TTS add languages

我怕爱的太早我们不能终老 提交于 2019-12-05 11:25:43
I would like to develop an app that uses TTS for many languages. The problem is that only few languages come with specific devices, depending on the country I suppose (I'm talking about PICO). Is there a way to use a TTS engin embedded in my apk or find somewhere online the missing PICO files and put them in the apk... or any other solution to support languages but present in the device by default? Read this article: http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html There is an intent (action - ACTION_INSTALL_TTS_DATA) which automatically will downloaded

JS Speech Synthesis Issue on iOS

空扰寡人 提交于 2019-12-05 11:21:14
I recently implemented a basic web app which relied on Google's TTS URL to generate clear MP3 files for playback on the front end. This has since been subject to an additional security check, meaning I have had to update the code base to use alternative methods. One such alternative is javascript's speech synthesis API, i.e. SpeechSynthesisUtterance() and window.speechSynthesis.speak('...'). This works really well on my desktop and laptop but as soon as I use it on my iOS devices, the rate of the audio is accelerated significantly. Can anyone suggest what I can do to resolve this? See below

Why I'm getting “Building MacinTalk voice for asset: (null)” in iOS device test

不打扰是莪最后的温柔 提交于 2019-12-05 10:18:45
I'm executing below code for text-to-speech project on device, but getting error "Building MacinTalk voice for asset: (null)" Please any help on how I can fix or any tips what's going wrong. AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Tips For Silicon Valley From A Startup Accelerator In Gaza"]; [utterance setRate:0.015f]; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-GB"]; [synthesizer speakUtterance:utterance]; If it the same as I am seeing then it is not really an error

How do I use iOS's in-built text to speech function from within an app? [duplicate]

拈花ヽ惹草 提交于 2019-12-05 07:42:53
问题 This question already has answers here : Text to speech on iPhone [closed] (9 answers) Closed 6 years ago . I'm in the process of building a app that helps students learn foreign languages. I notice the iPhone can read foreign language text in Safari when I have "Speak Selection" turned on in the Accessibility menu in settings. Is it possible to programmatically have the in-built text-to-speech software on the phone read a foreign word (an NSString) which is being displayed in a UIView? 回答1: