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

termux-tts-speak: Use STREAM_MUSIC as default stream (#67)

This fixes #66.
This commit is contained in:
Alain Kalker 2017-02-20 01:59:02 +01:00 committed by Fredrik Fornwall
parent cff02a5614
commit 56b5a1257c

View File

@ -52,7 +52,7 @@ public class TextToSpeechAPI {
final String speechEngine = intent.getStringExtra("engine");
final float speechPitch = intent.getFloatExtra("pitch", 1.0f);
int streamToUseInt = AudioManager.STREAM_NOTIFICATION;
int streamToUseInt = AudioManager.STREAM_MUSIC;
String streamToUseString = intent.getStringExtra("stream");
if (streamToUseString != null) {
switch (streamToUseString) {