text-to-speech

How to check if a specific language data for Text to Speech(TTS) is installed on a device?

北城余情 提交于 2019-12-10 19:06:44
问题 I am creating an app which uses Text to Speech and I want the user to have the ability to use it offline so I make a check to see if the TTS data is installed on the device, here is thde code which does this: // Check tts data is installed Intent checkTTSIntent = new Intent(); checkTTSIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA); startActivityForResult(checkTTSIntent, MY_DATA_CHECK_CODE); protected void onActivityResult(int requestCode, int resultCode, Intent data){ if

pyttsx and gTTS module errors

纵饮孤独 提交于 2019-12-10 17:47:10
问题 windows 10-64bit I'm trying to use some text-to-speech tool to read text from lines of .txt document, something like this: so with pyttsx: import pyttsx engine = pyttsx.init() engine.say('my voice') engine.runAndWait() I got this error: Traceback (most recent call last): File "...", line 1, in <module> import pyttsx File "/.../pyttsx/__init__.py", line 18, in <module> from engine import Engine ImportError: No module named 'engine' now gTTS, available as gtts_token, so how to use it? because

SSML or IPA TTS on Chrome

一世执手 提交于 2019-12-10 17:10:41
问题 o I'm trying to make an app (for myself only) that will pronounce odd (fantasy) names properly. I found chrome's TTS api and W3C's SpeechSynthesis API however it would appear that Chrome strips all SSML tags before speaking the remaining text: <?xml version="1.0"?> <speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/10/synthesis http://www.w3.org/TR/speech-synthesis/synthesis.xsd" xml

TextToSpeech.setEngineByPackageName() returns success even when package is not available

為{幸葍}努か 提交于 2019-12-10 14:34:15
问题 After managing to make TextToSpeech.setEngineByPackageName() work thanks to this answer, I am now having the "opposite" problem: tts.setEngineByPackageName("com.ivona.tts.voicebeta.eng.usa.kendra"); always returns TextToSpeech.SUCCESS , even when that package is not installed at all in the device. Since the package is not available on the device, TTS proceeds to speak with Android's default pico , which is expected, but I don't understand why setEngineByPackageName() returns SUCCESS. How

Extending the Android Text-To-Speech(TTS) language pack

折月煮酒 提交于 2019-12-10 13:54:54
问题 I have been defining a new language for the Espeak text-to-speech (TTS) using espeak(desktop application). I have successfully defined the language but have been unable to find a way to export the language files to android TTS engine (such as PICO TTS). I want to integrate the new language the existing language pack in android. Can anyone help me or direct me in an appropriate direction ! I'm currently trying to export a new language from espeak to Android too but I'm stuck. Please offer me

How can I convert text to speech (mp3 file) in python?

半世苍凉 提交于 2019-12-10 13:27:16
问题 I can convert text to speech in python using puttsx. and I can do record audio using microphone(headphone) to mp3 file. What I want to do is to convert text to mp3 file. Is there a way to store audio playing using pyttsx to memory or unicode string. Can anyone help me storing audio to memory, or how I can convert that string to mp3 file. 回答1: I do not know about pyttsx, but a while ago I used the Google TTS API to generate MP3s from text. You can get an idea of how it works from this code

FreeTTS, Java, Linux: Workaround for “LINE UNAVAILABLE: Format is …”

好久不见. 提交于 2019-12-10 11:54:38
问题 When I run FreeTTS examples, I get this error: LINE UNAVAILABLE: Format is pcm_signed 16000.0 Hz 16 bits 1 channel big endian In this post, Freetts problem in Java someone claims it's a known Linux/Java sound bug and has a workaround, linking to http://forums.sun.com/thread.jspa?threadID=5189363 . But this link does not work anymore since Oracle screwed it. Archive.org seems not to have this page archived. Does anyone have the workaround / patch for FreeTTS? Thanks, Ondra 回答1: Linux's ALSA is

Analyzing Text for Accents

萝らか妹 提交于 2019-12-10 11:47:45
问题 This is the first part of another question of mine that had a recommendation to make it two questions: Adding Accents to Speech Generation. Summary: The other question asks how to add an accent programatically to generated speech. Not an accent mark or inflection, but a full accent like a British or Scottish or Russian one. The first question (same as this one) asks how the original text could be analyzed to determine what accents need to be added and where. Basically, how could text be

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

 ̄綄美尐妖づ 提交于 2019-12-10 11:29:32
问题 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 {

SpeechSynthesizer .NET control pitch

元气小坏坏 提交于 2019-12-09 15:01:26
问题 I'm trying to change the pitch of spoken text via SSML and the .NET SpeechSynthesizer (System.Speech.Synthesis) SpeechSynthesizer synthesizer = new SpeechSynthesizer(); PromptBuilder builder = new PromptBuilder(); builder.AppendSsml(@"C:\Users\me\Documents\ssml1.xml"); synthesizer.Speak(builder); The content of the ssml1.xml file is: <?xml version="1.0" encoding="ISO-8859-1"?> <ssml:speak version="1.0" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"> <ssml:sentence> Your