audio没声音,回调返回1,播放失败

[2019-05-10 10:19:44.872]: audio.updatenil1TTS你好,现在时刻18点30分7function: 0x821e2dc8nil0

[2019-05-10 10:19:44.878]: [I]-[audio.taskAudio begin]1TTS你好,现在时刻18点30分7function: 0x821e2dc8nil0

[2019-05-10 10:19:44.882]: [I]-[audio.ttsMsg]1true

[2019-05-10 10:19:44.886]: audio_play_tts_callback error: 3

[2019-05-10 10:19:44.890]: [I]-[audio.ttsMsg]2false

[2019-05-10 10:19:44.892]: [I]-[audio.taskAudio resume msg]ERROR

[2019-05-10 10:19:44.895]: [I]-[audio.ttsMsg]3true

[2019-05-10 10:19:44.898]: [I]-[audio.ttsMsg]0true

[2019-05-10 10:19:44.903]: [I]-[audio.playEnd]1function: 0x821e2dc8

[2019-05-10 10:19:44.906]: [I]-[testAudio.testCb]1


请先 登录 后评论

1 个回答

guodongfu

local ttsStr = "你好,现在时刻18点30分"

local function testCb(r)

    log.info("testAudio.testCb",r)

end

sys.taskInit(

function()

while true do

            audio.setStrategy(1)

            audio.play(1,"TTS",ttsStr,7,testCb)

    sys.wait(10000)

end

end)

请先 登录 后评论
  • 0 关注
  • 0 收藏,2179 浏览
  • guodongfu 提出于 2019-05-10 10:23

相似问题