Skip to content

Commit

Permalink
Add comment about default tts audio stream
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Feb 20, 2017
1 parent 0e18291 commit 341e5f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/termux/api/TextToSpeechAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ protected void onHandleIntent(final Intent intent) {
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) {
Expand Down

0 comments on commit 341e5f3

Please sign in to comment.