What is the default audio stream of TTS?

后端 未结 1 688
忘掉有多难
忘掉有多难 2021-02-19 10:34

As far as I can tell, there are currently are 7 audio streams in Android:

STREAM_ALARM         (for alarms)
STREAM_DTMF          (for DTMF Tones)
STREAM_MUSIC            


        
相关标签:
1条回答
  • 2021-02-19 11:07

    STREAM_MUSIC is the default in the AOSP source, defined in TextToSpeech.java (line 164 as of this writing) in frameworks/base.git:

    /**
     * Default audio stream used when playing synthesized speech.
     */
    public static final int DEFAULT_STREAM = AudioManager.STREAM_MUSIC;
    
    0 讨论(0)
提交回复
热议问题