在线语音合成,播报没有声音。
小衬衫丶阳光 发布于2021-02 浏览:2112 回复:4
0
收藏

手机声音已经开到最大,用demo中的apk播报是有声音的,但是自己写的代码,播报没有声音,返回是0成功.

声音设置的mSpeechSynthesizer.setParam(SpeechSynthesizer.PARAM_VOLUME, "15");最响了。


日志内容如下:

2021-02-19 15:45:48.032 14008-14008/com.aheading.news.yingtanrb I/[BDASR_LOG] TTSUtils: speek.result=0
2021-02-19 15:45:48.032 14008-14846/com.aheading.news.yingtanrb D/bdtts-ArgsCheckInterceptor: text=您当前的积分为18
2021-02-19 15:45:48.033 14008-14846/com.aheading.news.yingtanrb D/bdtts-StatisticsInterceptor: statistics
2021-02-19 15:45:48.034 14008-14846/com.aheading.news.yingtanrb V/PlayerBase: basePause() piid=183
2021-02-19 15:45:48.038 14008-14846/com.aheading.news.yingtanrb V/PlayerBase: baseStop() piid=183
2021-02-19 15:45:48.041 14008-14846/com.aheading.news.yingtanrb D/AudioFeatures: PlaybackDetectionCallBack start:android.media.PlayerBase$IPlayerWrapper@8c276d4
2021-02-19 15:45:48.045 14008-14846/com.aheading.news.yingtanrb D/bdtts-PlayQueueMachine: before await
2021-02-19 15:45:48.047 14008-14846/com.aheading.news.yingtanrb D/bdtts-PlayQueueMachine: after await isTer=true
2021-02-19 15:45:48.048 14008-14846/com.aheading.news.yingtanrb V/PlayerBase: baseStart() piid=183
2021-02-19 15:45:48.050 14008-14846/com.aheading.news.yingtanrb V/AudioTrack: start: server read:0 cumulative flushed:0 client written:0
2021-02-19 15:45:48.059 14008-14846/com.aheading.news.yingtanrb D/bdtts-EngineExecutor: before awaitTermination
2021-02-19 15:45:48.059 14008-14846/com.aheading.news.yingtanrb D/bdtts-EngineExecutor: after awaitTermination isTermination=true
2021-02-19 15:45:48.060 14008-14846/com.aheading.news.yingtanrb D/bdtts-TtsAdapter: onSynthesizeStop
2021-02-19 15:45:48.061 14008-14846/com.aheading.news.yingtanrb D/bdtts-NameThreadFactory: threadName=bdtts-EngineExecutorPoolThread(1)
2021-02-19 15:45:48.070 14008-14846/com.aheading.news.yingtanrb D/bdtts-AInterceptorHandler: afterResult=0
2021-02-19 15:45:48.072 14008-14883/com.aheading.news.yingtanrb D/bdtts-NameThreadFactory: threadName=bdtts-PlayExecutorPoolThread(1)
2021-02-19 15:45:48.073 14008-14883/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: count=1
2021-02-19 15:45:48.073 14008-14884/com.aheading.news.yingtanrb D/bdtts-PlayQueueMachine: enter run
2021-02-19 15:45:48.073 14008-14884/com.aheading.news.yingtanrb D/bdtts-AudioTrackPlayer: enter put
2021-02-19 15:45:48.074 14008-14884/com.aheading.news.yingtanrb D/bdtts-AudioTrackPlayer: end put
2021-02-19 15:45:48.074 14008-14884/com.aheading.news.yingtanrb D/bdtts-PlayQueueMachine: end run
2021-02-19 15:45:48.077 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: before online auth
2021-02-19 15:45:48.080 14008-14886/com.aheading.news.yingtanrb D/bdtts-AuthClient: pid=null
2021-02-19 15:45:48.080 14008-14886/com.aheading.news.yingtanrb D/bdtts-AuthClient: key=null
2021-02-19 15:45:48.080 14008-14886/com.aheading.news.yingtanrb D/bdtts-AuthClient: ak=Unn4agmnkpfdPeyRtnXPIqAi
2021-02-19 15:45:48.080 14008-14886/com.aheading.news.yingtanrb D/bdtts-AuthClient: sk=w2XIfb9D3j4uaMkS8raWKm5tZvZc6V0d
2021-02-19 15:45:48.081 14008-14886/com.aheading.news.yingtanrb D/bdtts-OnlineAuth: mAK=Unn4agmnkpfdPeyRtnXPIqAi--mSK=w2XIfb9D3j4uaMkS8raWKm5tZvZc6V0d--ak2=Unn4agmnkpfdPeyRtnXPIqAi--sk2=w2XIfb9D3j4uaMkS8raWKm5tZvZc6V0d
2021-02-19 15:45:48.081 14008-14886/com.aheading.news.yingtanrb D/bdtts-Memorizer: + get f=java.util.concurrent.FutureTask@6c6ae74
2021-02-19 15:45:48.081 14008-14886/com.aheading.news.yingtanrb D/bdtts-Memorizer: - get f=java.util.concurrent.FutureTask@6c6ae74
2021-02-19 15:45:48.081 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: after online auth
2021-02-19 15:45:48.087 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: request params: ter=&ver=2.6.2.2&cuid=0365F497F5DB826C5ADDDC5DE9235BCB%7C0&tex=%25E6%2582%25A8%25E5%25BD%2593%25E5%2589%258D%25E7%259A%2584%25E7%25A7%25AF%25E5%2588%2586%25E4%25B8%25BA18&spd=5&num=&bcg=&en=&platform=Android&aue=4&tok=24.483b37874a02a9d11352d9403b80d720.2592000.1616312711.282335-23034427&vol=15&rate=0&xml=0&lan=ZH&cod=2&sty=&pit=5&sn=9db39bbc-5a77-4a1a-b8fd-c28a9cdae640&idx=1&per=0&cuid_num=62966170&ctp=10&puc=
2021-02-19 15:45:48.090 14008-14885/com.aheading.news.yingtanrb D/bdtts-getIpUrlByProtocol UrlEnum: https://tsn.baidu.com/text2audio
2021-02-19 15:45:48.090 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: serverIp=https://180.101.49.128/text2audio
2021-02-19 15:45:48.090 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: timeout=6000
2021-02-19 15:45:48.090 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: before post
2021-02-19 15:45:48.229 14008-14885/com.aheading.news.yingtanrb D/bdtts-HttpClientUtil: ResponseCode: 200
2021-02-19 15:45:48.233 14008-14885/com.aheading.news.yingtanrb D/bdtts-TtsResponseHandler: response: 200
2021-02-19 15:45:48.237 14008-14885/com.aheading.news.yingtanrb D/bdtts-TtsResponseHandler: parseJSON errNo=502
2021-02-19 15:45:48.238 14008-14885/com.aheading.news.yingtanrb D/bdtts-OnlineSynthesizer: after post
2021-02-19 15:48:58.700 14008-14121/com.aheading.news.yingtanrb V/[ui]core: 1604/handle packet: PacketHeader [SID 1 , CID 2 , SER 0 , RES 200 , TAG 2 , LEN 7]

收藏
点赞
0
个赞
共4条回复 最后由qq928243596回复于2022-09
#5晨曦125056回复于2021-07

会员特惠

0
#4184*****320回复于2021-02

我也遇到这个问题 但是我有次数也不行.....

0
Y
#3yffanshen回复于2021-02

可以去官网群问

0
#2小衬衫丶阳光回复于2021-02

找到原因了,是因为控制台没有播报次数。没有领取免费额度,也没有付费。但是为什么返回0啊,害我找了3个小时的错误,也找不到人询问。

1
TOP
切换版块