Class IBNTTSManager.IBNOuterTTSPlayerCallback

  • Enclosing interface:
    IBNTTSManager

    public abstract static class IBNTTSManager.IBNOuterTTSPlayerCallback
    extends java.lang.Object
    如果开发者需要使用自己的TTS模块 可使用IBNTTSManager.initTTS(IBNOuterTTSPlayerCallback);
    • Constructor Detail

      • IBNOuterTTSPlayerCallback

        public IBNOuterTTSPlayerCallback()
    • Method Detail

      • playTTSText

        public abstract int playTTSText​(java.lang.String speech,
                                        java.lang.String pStrTag,
                                        int bPreempt,
                                        java.lang.String speechId)
        Parameters:
        speech - 播报文本
        bPreempt - 是否抢占播报
        speechId - 文本id
      • playTTSText

        public int playTTSText​(TTSData data)
      • playTTSText

        public int playTTSText​(int module,
                               java.lang.String speech,
                               java.lang.String pStrTag,
                               int bPreempt,
                               java.lang.String speechId,
                               java.lang.String scene,
                               boolean needSpec)
      • playXDTTSText

        public int playXDTTSText​(TTSData data)
      • playXDTTSText

        public int playXDTTSText​(int module,
                                 java.lang.String speech,
                                 java.lang.String pStrTag,
                                 int bPreempt,
                                 java.lang.String speechId,
                                 java.lang.String scene)
      • phoneCalling

        public void phoneCalling()
      • phoneHangUp

        public void phoneHangUp()
      • initTTSPlayer

        public void initTTSPlayer()
      • releaseTTSPlayer

        public void releaseTTSPlayer()
      • resumeTTS

        public void resumeTTS()
      • pauseTTS

        public void pauseTTS()
      • stopTTS

        public void stopTTS()
      • playAudio

        public int playAudio​(java.lang.String audioPath,
                             AudioPlayerListener lis)
      • cancelAudio

        public int cancelAudio()
      • getCurrentVolume

        public int getCurrentVolume()
      • setTTSVolume

        public void setTTSVolume​(int volume)
      • setEnableTimeOut

        public void setEnableTimeOut​(boolean enable)
      • hasInitialized

        public boolean hasInitialized()