text-to-speech

How to link festival TTS libraries in a C++ programme using g++

不问归期 提交于 2019-12-06 14:06:48
问题 i am using Festival c++ Api but in the manual provided at http://www.cstr.ed.ac.uk/projects/festival/manual/festival_28.html#SEC132 saying to link festival/src/lib/libFestival.a etc. so please tell me hw to link them with my c++ programme 回答1: The simplest way to link a static library from g++ is simply to name the library on the command line, using the complete path: g++ mycode.cpp -o myprog /myinstall/festival/src/lib/libFestival.a where /myinstall is wherever you installed the libraries.

Speech Synthesis on iOS weird errors on loading, and no concurrency

為{幸葍}努か 提交于 2019-12-06 14:05:01
I'm using the speech synth in AVFoundation, creating an instance of a voice like this: import AVFoundation class CanSpeak { let voices = AVSpeechSynthesisVoice.speechVoices() let voiceSynth = AVSpeechSynthesizer() var voiceToUse: AVSpeechSynthesisVoice? init(){ for voice in voices { if voice.name == "Arthur" { voiceToUse = voice } } } func sayThis(_ phrase: String){ let utterance = AVSpeechUtterance(string: phrase) utterance.voice = voiceToUse utterance.rate = 0.5 voiceSynth.speak(utterance) } } I have two problems. There's no concurrency. Calling this function multiple times results in a

C# SAPI 5.4 Languages?

江枫思渺然 提交于 2019-12-06 12:24:50
问题 I've made a Simple Program That Recognizes Speech Using SAPI 5.4 , i wanted to ask if i can add some more languages to the TTS and The ASR , Thanks Here is the code i made you anybody needs to take a look at it using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using SpeechLib; using System.Globalization; using System.Speech.Recognition; namespace

How do you get/set media volume (spotify) and TTS in Android?

旧城冷巷雨未停 提交于 2019-12-06 12:23:41
问题 Decrease the stream volume and Increase TTS volume at the same time I had this Android application that talk with TTS every time and uses streaming music (spotify). So, I need to decrease the volume and increase the TTS I use this code but this decrease the tts as well. AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,[int value],[if desired a flag]); Any way to decrease only spotify like stream music .

Google Cloud Text-to-Speech Interface Confusion (How do I download the mp3 files?)

坚强是说给别人听的谎言 提交于 2019-12-06 11:34:27
I'd like to preface this with the fact that I am not a programmer/developer - I am a multimedia designer. I use text-to-speech to generate placeholder audio files that can be used to time animations before we record the official audio narration. Previously I was using Amazon Polly but I wanted to give Google Cloud a try. However, I'm having the hardest time actually figuring out how to generate the mp3 files and save them. With Amazon Polly, you simply go to a website, enter your text into a field, and click a button and it will save your file as an mp3 file. With Google Cloud, it seems far

Google TTS API: Encoding GET request with PHP

随声附和 提交于 2019-12-06 11:32:23
--- SOLVED --- Problem solved. Solution is simple: file_get_contents("http://translate.google.com/translate_tts?tl=de&q=".urlencode($str)."&ie=UTF-8") To those coming here from search engine: Make sure you set the file charset to UTF-8, include the ie=UTF-8 parameter into the URL, urlencode your string. Everything should be fine then. ORIGINAL POST WAS: I have a problem with making PHP send a correctly encoded GET request to the Google TTS API. $str='This is a German string which contains crazy Umlaute like ä (like in Häuser) or ü (like in Übermensch). Sehr deutsch halt.'; file_get_contents(

In Android----How can we provide hint which word is speaking in Text to Speech?

回眸只為那壹抹淺笑 提交于 2019-12-06 09:28:59
Any body help me to Provide hint in Text to Speech? I get word in Array but TextToSpeech.QUEUE_ADD takes a few seconds to speak and makes bold word run speedily. My Code is below :-(tts is a TextToSpeech object) String[] strArr = txtText.getText().toString().split(" "); txtText.setText(""); for(int i=0;i<strArr.length;i++) { Log.d("","Value :- "+strArr[i]); HashMap<String, String> myHashAlarm = new HashMap<String, String>(); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_NOTIFICATION)); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "test"

How to write an application that reads text and produces speech

烂漫一生 提交于 2019-12-06 09:06:35
问题 I'm an IT student. I want to write an web browser for blind people. How can I use C# or java to write an application to pronounce some text from a XML file (Text to Speech)? 回答1: You can use the SpeechSynthesizer class from the .Net Framework: Add a reference to System.Speech.dll Add a using statement for System.Speech.Synthesis Use this code: SpeechSynthesizer synthesizer = new SpeechSynthesizer(); synthesizer.Speak("Hello world! How are you?"); 回答2: For .NET, have a look at the Speech APIs.

converting text to speech java code

被刻印的时光 ゝ 提交于 2019-12-06 07:38:24
I dont understand this syntax error , insert ")" to complete MethodInvocation Syntax error, insert ";" to complete Statement at demojsapi.main(demojsapi.java:46) I am actually working on a java project converting text to speesh with this code : import javax.speech.*; import java.util.*; import javax.speech.synthesis.*; public class demojsapi { String speaktext; public void dospeak(String speak,String voicename) { speaktext=speak; String voiceName =voicename; try { SynthesizerModeDesc desc = new SynthesizerModeDesc(null,"general", Locale.US,null,null); Synthesizer synthesizer = Central

Ivona Request Signing Issue - signature does not match (AWS Signature Version 4)

无人久伴 提交于 2019-12-06 07:21:08
I am trying to implement Ivona request signing based on this documnent Everything works good and all the results match to the example value, except Signature result. So my result for the signature is cf1141e33a8fbba23913f8f36f29faa524a57db37690a1b819f43bbeaabf3b76 but in the document it is equal to 2cdfef28d5c5f6682280600a6141a8940c608cfefacb47f172329cbadb5864cc Is it my mistake or a mistake in the Ivona document? Below is the C# code I am using: class Program { static void Main() { try { Console.WriteLine(SendIvonaRequest()); } catch (Exception ex) { Console.WriteLine(ex.Message); } } private