text-to-speech

Python GTTS Error : AttributeError: 'NoneType' object has no attribute 'group'

帅比萌擦擦* 提交于 2019-12-12 13:17:47
问题 I have a project where I was doing text to speech conversion. My audio file is being stored as a mp3. But now, when I check the Gtts api is throwing error. I tried searching but couldn't find a workable solution for the bug. My code is as follows: def synth(sent,language='en',slow = False): """ Synthesize text into audio """ os.system('clear') print("Speaker Output:" + sent) gt_ob = gTTS(text=sent, lang=language, slow=slow) file_name = hashlib.md5(sent.encode('utf-8')).hexdigest() print("File

Speech on WinRT

佐手、 提交于 2019-12-12 12:54:38
问题 Is Speech api available in WinRT (like Windows Phone 8). Can I use some third party speech api instead? I want to implement TTS in my Windows 8/WinRT application, does anyone have some suggestions? 回答1: Speech is now available for WinRT Voice Commands and Speech Recognition are available on phone only. TTS is available for all winRT devices. 回答2: There is no Speech API available in WinRT. There may be 3rd party WinRT components, you would have to look for those. I am not aware of any, but I

Localizing the Reading of Emoji on IOS 10.0 or Higher

一曲冷凌霜 提交于 2019-12-12 10:59:20
问题 I've noticed an issue where IOS does not seem to localize the reading (by AVSpeechSynthesizer) of emojis on IOS 10.0 or higher, but it does seem to do it properly on IOS 9.3 or lower. If you tell an AVSpeechSynthesizer that's set to English to speak an emoji by sending it the string, "😀", it will say "Grinning face with normal eyes." When you change the voice language of the synth to anything other than English, such as French, for example, and send the same emoji, it should say "Visage

JS/JQuery text to speech: How to chain audios?

痴心易碎 提交于 2019-12-12 10:16:59
问题 Given n different words: var text = [ "bèijing Beijing Shanghai"] var words= [ "bèijing", "Beijing", "Shanghai" ]; Given n different .ogg audio files with a known locations : <!-- AUDIOS FILES --> <audio id="id1" src="/audio/Zh-bèijing.ogg"></audio> <audio id="id2" src="/audio/Zh-Beijing.ogg"></audio> <audio id="id3" src="/audio/Zh-Shanghai.ogg"></audio> I use JS getElementById('...').play() , which I run using an onclick event over an HTML element: <!-- HTML --> <div id="play" onClick=

Google TTS API: Encoding GET request with PHP

霸气de小男生 提交于 2019-12-12 10:06:03
问题 --- 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

FreeTTS unable to find any voice

家住魔仙堡 提交于 2019-12-12 09:18:39
问题 I am trying to use FreeTTS, here is the code: import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; public class FreeTTSVoice { public static final String VOICE_ALAN = "alan"; public static final String VOICE_KEVIN = "kevin"; public static final String VOICE_KEVIN16 = "kevin16"; private Voice voice; public FreeTTSVoice(String voiceName) { VoiceManager voiceManager = VoiceManager.getInstance(); voice = voiceManager.getVoice(voiceName); if (voice == null) { System.err

What is the default audio stream of TTS?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 08:27:08
问题 As far as I can tell, there are currently are 7 audio streams in Android: STREAM_ALARM (for alarms) STREAM_DTMF (for DTMF Tones) STREAM_MUSIC (for music playback) STREAM_NOTIFICATION (for notifications) STREAM_RING (for the phone ring) STREAM_SYSTEM (for system sounds) STREAM_VOICE_CALL (for phone calls) I also know that it is possible to explicitly tell the TTS engine which stream to use: params.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf(AudioManager.STREAM_ALARM)); mTts.speak

Text to audio and audio to text in Android

匆匆过客 提交于 2019-12-12 05:26:51
问题 I want to convert text to audio and by recording audio to text. But after converting text to audio, I need to encrypt (or any other thing ) audio and by listening that encrypted audio, I need to decrypt and then using text to speed, will be converted audio to text. Is Text to speech useful? I found echoprint and acoustic-fingerprint-opensource. I think text to speech engine is helpful. Does anyone have an idea? 回答1: I've used a Text-To-Speech in a couple of projects. It works very well and

Select language for text-to-speed on android webview

谁都会走 提交于 2019-12-12 04:24:46
问题 I have searching for many hours without a real answer. Is there anyway to select different language than the default one for the Text-to-speech function? This code works perfectly on chrome on PC, but not working on Android browser: $(function(){ if ('speechSynthesis' in window) { speechSynthesis.onvoiceschanged = function() { var $voicelist = $('#voices'); if($voicelist.find('option').length == 0) { speechSynthesis.getVoices().forEach(function(voice, index) { console.log(voice); var $option

Troubleshooting “System property mbrola.base is undefined. Will not use MBROLA voices” when converting text to speech using FreeTTS

落花浮王杯 提交于 2019-12-12 03:55:51
问题 import com.sun.speech.freetts.*; import java.util.*; public class Demofreetts { private String speaktext; public void doSpeak(String speak, String voice) { speaktext = speak; try { VoiceManager voiceManager = VoiceManager.getInstance(); Voice voices = voiceManager.getVoice(voice); Voice sp = null; if(voices != null) sp = voices; else System.out.println("No Voice Available"); sp.allocate(); sp.speak(speaktext); sp.deallocate(); } catch(Exception e) { e.printStackTrace(); } } public static void