1
0
mirror of https://github.com/danog/termux-api.git synced 2025-01-22 13:21:10 +01:00

Add comment about default tts audio stream

This commit is contained in:
Fredrik Fornwall 2017-02-20 02:03:48 +01:00
parent 0e182911b2
commit 341e5f395a

View File

@ -52,6 +52,8 @@ public class TextToSpeechAPI {
final String speechEngine = intent.getStringExtra("engine");
final float speechPitch = intent.getFloatExtra("pitch", 1.0f);
// STREAM_MUSIC is the default audio stream for TTS, see:
// http://stackoverflow.com/questions/6877272/what-is-the-default-audio-stream-of-tts/6979025#6979025
int streamToUseInt = AudioManager.STREAM_MUSIC;
String streamToUseString = intent.getStringExtra("stream");
if (streamToUseString != null) {