google-text-to-speech

How to install specific TTS engine programmatically in Android?

青春壹個敷衍的年華 提交于 2021-02-19 01:30:25
问题 I am trying to add to my app specific TTS engine - not system based, so each person will have another, but one for all. In documentation there is method:setEngineByPackageName(), which looks like it will make what I want. However, looking on other similar problems earlier I've found something using this method: https://stackoverflow.com/questions/12549086/selecting-required-tts-programmatically-in-android. It looks quite ok, but it is used after system checking if TTS engine is installed, and

How to install specific TTS engine programmatically in Android?

可紊 提交于 2021-02-19 01:30:13
问题 I am trying to add to my app specific TTS engine - not system based, so each person will have another, but one for all. In documentation there is method:setEngineByPackageName(), which looks like it will make what I want. However, looking on other similar problems earlier I've found something using this method: https://stackoverflow.com/questions/12549086/selecting-required-tts-programmatically-in-android. It looks quite ok, but it is used after system checking if TTS engine is installed, and

How to install specific TTS engine programmatically in Android?

你说的曾经没有我的故事 提交于 2021-02-19 01:30:12
问题 I am trying to add to my app specific TTS engine - not system based, so each person will have another, but one for all. In documentation there is method:setEngineByPackageName(), which looks like it will make what I want. However, looking on other similar problems earlier I've found something using this method: https://stackoverflow.com/questions/12549086/selecting-required-tts-programmatically-in-android. It looks quite ok, but it is used after system checking if TTS engine is installed, and

Use of sound files in TTS on Marshmallow (Android 6) fails with permission issues

杀马特。学长 韩版系。学妹 提交于 2021-02-07 06:48:31
问题 Using addSpeech() in android TTS, you can link a certain text to a sound file. Then, the TTS engine plays the file instead of synthesizing the sound of the text (also in question at Android TTS(Text to Speech)'s addSpeech() and speak() can't play a sound file in the external storage from marshmallow(api 23) above, with Google TTS ). This is not working in Android 6.0 with TTS version 3.9.14 (and 3.10.10). So far, I did not see ant post with an answer as to why this is not working in Android 6

How to get SSML <mark> timestamps from Google Cloud text-to-speech API

只谈情不闲聊 提交于 2020-05-10 03:20:06
问题 I want to use SSML markers through the Google Cloud text-to-speech API to request the timing of these markers in the audio stream. These timestamps are necessary in order to provide cues for effects, word/section highlighting and feedback to the user. I found this question which is relevant, although the question refers to the timestamps for each word and not the SSML <mark> tag. The following API request returns OK but shows the lack of the requested marker data. This is using the Cloud Text

Using google speech cloud api from android give error in GOOGLE_APPLICATION_CREDENTIALS

二次信任 提交于 2020-02-25 23:32:35
问题 I am trying to build an app that use google speech cloud api in android kotlin here is my code launch { googleTextToSpeech = TextToSpeechClient.create() googleTextToSpeech?.let { viewModel.speakGoogle(googleTextToSpeech!!, totalMessage, player) } } fun speakGoogle(textToSpeech: com.google.cloud.texttospeech.v1.TextToSpeechClient, message: String, player: MediaPlayer) { val filePath = Environment.getExternalStorageDirectory().absolutePath + "/google_" + System.currentTimeMillis() + ".mp3"

Using google speech cloud api from android give error in GOOGLE_APPLICATION_CREDENTIALS

江枫思渺然 提交于 2020-02-25 23:30:56
问题 I am trying to build an app that use google speech cloud api in android kotlin here is my code launch { googleTextToSpeech = TextToSpeechClient.create() googleTextToSpeech?.let { viewModel.speakGoogle(googleTextToSpeech!!, totalMessage, player) } } fun speakGoogle(textToSpeech: com.google.cloud.texttospeech.v1.TextToSpeechClient, message: String, player: MediaPlayer) { val filePath = Environment.getExternalStorageDirectory().absolutePath + "/google_" + System.currentTimeMillis() + ".mp3"

Android TextToSpeech behaves irregular

梦想的初衷 提交于 2020-01-02 15:08:18
问题 Update: After some digging I managed to find some information in the Logcat. See bottom. Edit 2: I have now created a new activity from scratch to reduce the problem. It does still not work correctly. Here is the code: public class MainActivity extends AppCompatActivity { private TextToSpeech textToSpeech; private boolean isInitialized = false; private MainActivity mainActivity; int ctr = 0; private String words[] = {"ord", "kula", "fotboll"}; @Override protected void onCreate(Bundle

Android Text-To-Speech API Sounds Robotic

℡╲_俬逩灬. 提交于 2019-12-28 12:33:26
问题 I'm learning android development for the first time and my goal is to create a simple Hello World application that takes in some text, and reads them out loud. I've based my code off an example I found and here's my code: class MainFeeds : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main_feeds) card.setOnClickListener{ Toast.makeText(this, "Hello", Toast.LENGTH_LONG).show() TTS(this, "Hello this

Android Text-To-Speech API Sounds Robotic

最后都变了- 提交于 2019-12-28 12:33:10
问题 I'm learning android development for the first time and my goal is to create a simple Hello World application that takes in some text, and reads them out loud. I've based my code off an example I found and here's my code: class MainFeeds : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main_feeds) card.setOnClickListener{ Toast.makeText(this, "Hello", Toast.LENGTH_LONG).show() TTS(this, "Hello this