Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does TTS API work without network connection on android?

hello i'm a student of engineer school and i was wondering if TTS(Text to Speech) works in offline environment for android.

like image 973
John_potato Avatar asked Apr 19 '17 04:04

John_potato


People also ask

Can we call API without Internet?

Before calling an API from the mobile app to get data from the server or post data to it, we need to confirm internet connectivity. If there is no internet connection, we can't call an API and we have to notify the end user about the internet connection failure. This will avoid application crashes.

What is TTS feature of Android?

With text-to-speech, your device can convert text input and play audio aloud.

What is AddSpeech () method in Android?

AddSpeech(String, String) Adds a mapping between a string of text and a sound file.


1 Answers

You require an internet connection for the Text to Speech API, but you can use Text to Speech in offline mode by applying the following settings.

Currently not all devices support offline speech input. However you can follow this discussion to enable offline speech input for supported devices.

1. On your device go to Settings -> Language and Input. Click on the Google voice input icon (text-to-speech output on some devices).
2. Under ALL tab select the language you want to download.
3. Once the language package downloaded, you can see it under INSTALLED tab.

Download all the offline speech models (voices) you require to support offline Text to Speech.

like image 141
Chirag Avatar answered Sep 20 '22 23:09

Chirag