Files
msh-system/models-integration/target/classes/com/integration/api/service/impl/TencentAsrServiceImpl.class

154 lines
12 KiB
Plaintext
Raw Normal View History

<EFBFBD><EFBFBD><EFBFBD><EFBFBD>4;
<00><00> <00><00>
<00><00>


<00> <00>

<00>
  

<00>

<00>


<00>

<00>

  
"<00>
"!
"
"#$
%&  '
<00>()
,<00>
*+
<00>,
,-
*.
/
<00>0
12
,3
*4
<00>5
,6
*7
,8
*9
,:
*;
,<
*=
,>
*?
,@
*A
,B
*C
DE
,F
*G
,H
*I
,J
KL
MN
OP
MQ  R
ST
U
VW
X
VYZ
V[
V\
V]^
V_
V`abc
^"de
c<00>
1f
cg
h
ijk
lm
ln
1
<00>o
pq
rs
rt
ru
rv
lw
xy
xz
r{
r|
l}~
r
l<01>
r<01>
r<01><01><01><01><01>
<00><00>
<00><01>
<00>8
<00><01>
<00><01>
<00>:
<00><
<00>>
<00>B
<00>F
<00>H
<00>J
*<01>
<00><01>
<01><01>
<01>n
<01>Q<01>
V<01>
<01><01>
1y
V<01>
V<01><01><01><01><01><01>
<01><01>
<01><01><01><01><01><01><01><01><01><01><01><01><01><01>
<01><01><01><01>loggerLorg/slf4j/Logger; asrConfig-Lcom/integration/api/config/TencentAsrConfig;RuntimeVisibleAnnotations8Lorg/springframework/beans/factory/annotation/Autowired;<init>()VCodeLineNumberTableLocalVariableTablethis8Lcom/integration/api/service/impl/TencentAsrServiceImpl; getAsrClient/()Lcom/tencentcloudapi/asr/v20190614/AsrClient;cred'Lcom/tencentcloudapi/common/Credential; httpProfile0Lcom/tencentcloudapi/common/profile/HttpProfile; clientProfile2Lcom/tencentcloudapi/common/profile/ClientProfile;eLjava/lang/Exception; StackMapTablecreateRecognitionTaskY(Lcom/integration/api/dto/TencentAsrRequest;)Lcom/integration/api/dto/TencentAsrResponse;client-Lcom/tencentcloudapi/asr/v20190614/AsrClient;req?Lcom/tencentcloudapi/asr/v20190614/models/CreateRecTaskRequest;resp@Lcom/tencentcloudapi/asr/v20190614/models/CreateRecTaskResponse;?Lcom/tencentcloudapi/common/exception/TencentCloudSDKException;request+Lcom/integration/api/dto/TencentAsrRequest;<01><01>)<01>aqueryTaskStatusB(Ljava/lang/String;)Lcom/integration/api/dto/TencentAsrTaskStatus;DLcom/tencentcloudapi/asr/v20190614/models/DescribeTaskStatusRequest;ELcom/tencentcloudapi/asr/v20190614/models/DescribeTaskStatusResponse;
taskStatus5Lcom/tencentcloudapi/asr/v20190614/models/TaskStatus; statusStrLjava/lang/String;taskIde<01><01><01><01>sentenceRecognitionELcom/tencentcloudapi/asr/v20190614/models/SentenceRecognitionRequest;FLcom/tencentcloudapi/asr/v20190614/models/SentenceRecognitionResponse;<01><01><01> getStatusStr(I)Ljava/lang/String;statusIgetVoiceFormat&(Ljava/lang/String;)Ljava/lang/String;urllowerUrl<clinit>
SourceFileTencentAsrServiceImpl.java(Lorg/springframework/stereotype/Service; <00><00> <00><00><01> <01><01><01> <01><01>java/lang/RuntimeException腾讯云 SecretId 未配置 <00><01> <01><01>^腾讯云 SecretKey 未配置,请通过环境变量 TENCENT_SECRET_KEY 或配置文件设置 <00><00>3初始化ASR客户端 - SecretId: {}***, Region: {} <01><01> <01><01><01> <01><01>%com/tencentcloudapi/common/Credential <00><01>.com/tencentcloudapi/common/profile/HttpProfileasr.tencentcloudapi.com <01><01> <01><01><01> <01><01> <01><01> <01><01> <01><01>0com/tencentcloudapi/common/profile/ClientProfile <01><01>+com/tencentcloudapi/asr/v20190614/AsrClient <00><01>java/lang/Exception创建ASR客户端失败 <01><01>java/lang/StringBuilder创建ASR客户端失败: <01><01> <01><01> <01><01>&创建语音识别任务,参数:{}<01> <01><01> <01><01> <00><00>=com/tencentcloudapi/asr/v20190614/models/CreateRecTaskRequest<01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01> <01><01><01> <01><01> <01><01> <01><01> <01> <01> <01> :创建语音识别任务成功TaskId: {}, RequestId: {} <01> <01>  <01> <01><01>
  <01><01><01> <00> <01> <00> 等待处理 <00>  成功  =com/tencentcloudapi/common/exception/TencentCloudSDKException创建语音识别任务失败失败%查询识别任务状态TaskId: {}Bcom/tencentcloudapi/asr/v20190614/models/DescribeTaskStatusRequest  <01> <01> <01>7查询识别任务状态成功Status: {}, Result: {}<01> <01> <01> <00><00>  <01> <00> <00> <00> ! "#<01> $% <01>& '(  )<01>  *+ , -查询识别任务状态失败 查询失败一句话识别,参数:{}Ccom/tencentcloudapi/asr/v20190614/models/SentenceRecognitionRequest .<01> <00><00> /<01> 0<01> 1<01> 231一句话识别成功Result: {}, RequestId: {}<01> 识别成功 ! "<01> '4 , 一句话识别失败 执行中 识别失败 未知状态wav 5<01>.wav 67.mp3mp3.pcmpcm.silksilk.speexspeex.amramr.m4am4a6com/integration/api/service/impl/TencentAsrServiceImpl8 9:java/lang/Object-com/integration/api/service/TencentAsrService)com/integration/api/dto/TencentAsrRequestjava/lang/StringCcom/tencentcloudapi/asr/v20190614/models/DescribeTaskStatusResponse3com/tencentcloudapi/asr/v20190614/models/TaskStatusTencentAsrTaskStatusBuilder InnerClassesHcom/integration/api/dto/TencentAsrTaskStatus$TencentAsrTaskStatusBuilderjava/lang/FloatDcom/tencentcloudapi/asr/v20190614/models/SentenceRecognitionResponseTencentAsrResponseBuilderDcom/integration/api/dto/TencentAsrResponse$TencentAsrResponseBuilder+com/integration/api/config/TencentAsrConfig getSecretId()Ljava/lang/String;isEmpty()Z(Ljava/lang/String;)V getSecretKey substring(II)Ljava/lang/String; getRegionorg/slf4j/Loggerdebug9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V'(Ljava/lang/String;Ljava/lang/String;)V setEndpointgetConnectTimeout()Ljava/lang/Integer;java/lang/IntegerintValue()IsetConnTimeout(I)VgetReadTimeoutsetReadTimeoutsetHttpProfile3(Lcom/tencentcloudapi/common/profile/HttpProfile;)Vn(Lcom/tencentcloudapi/common/Credential;Ljava/lang/String;Lcom/tencentcloudapi/common/profile/ClientProfile;)Verror*(Ljava/lang/String;Ljava/lang/Throwable;)Vappend-(Ljava/lang/String;)Ljava/lang/StringBuilder;
getMessagetoStringcom/alibaba/fastjson/JSON toJSONString&(Ljava/lang/Object;)Ljava/lang/String;info'(Ljava/lang/String;Ljava/lang/Object;)VgetEngineModelTypegetDefaultEngineModelsetEngineModelType getChannelNum longValue()JgetDefaultChannelNumjava/lang/LongvalueOf(J)Ljava/lang/Long; setChannelNum(Ljava/lang/Long;)VgetResTextFormatgetDefaultResTextFormatsetResTextFormat getSourceType setSourceTypegetDatasetData
getDataLen()Ljava/lang/Long;
setDataLengetUrlsetUrlgetCallbackUrlsetCallbackUrl getHotwordId setHotwordIdgetFilterDirty()Ljava/lang/Boolean;java/lang/Boolean booleanValuesetFilterDirtygetFilterModalsetFilterModalgetConvertNumModesetConvertNumMode CreateRecTask<00>(Lcom/tencentcloudapi/asr/v20190614/models/CreateRecTaskRequest;)Lcom/tencentcloudapi/asr/v20190614/models/CreateRecTaskResponse;>com/tencentcloudapi/asr/v20190614/models/CreateRecTaskResponse1()Lcom/tencentcloudapi/asr/v20190614/models/Task;-com/tencentcloudapi/asr/v20190614/models/Task getTaskId getRequestId*com/integration/api/dto/TencentAsrResponsebuilderH()Lcom/integration/api/dto/TencentAsrResponse$TencentAsrResponseBuilder;Z(Ljava/lang/String;)Lcom/integration/api/dto/TencentAsrResponse$TencentAsrResponseBuilder;(I)Ljava/lang/Integer;[(Ljava/lang/Integer;)Lcom/integration/api/dto/TencentAsrResponse$TencentAsrResponseBuilder; requestId errorCodeerrorMsgbuild.()Lcom/integration/api/dto/TencentAsrResponse; parseLong(Ljava/lang/String;)J setTaskIdDescribeTaskStatus<00>(Lcom/tencentcloudapi/asr/v20190614/models/DescribeTaskStatusRequest;)Lcom/tencentcloudapi/asr/v20190614/models/DescribeTaskStatusResponse;7()Lcom/tencentcloudapi/asr/v20190614/models/TaskStatus; getStatus getResult,com/integration/api/dto/TencentAsrTaskStatusL()Lcom/integration/api/dto/TencentAsrTaskStatus$TencentAsrTaskStatusBuilder;^(Ljava/lang/String;)Lcom/integration/api/dto/TencentAsrTaskStatus$TencentAsrTaskStatusBuilder;_(Ljava/lang/Integer;)Lcom/integration/api/dto/TencentAsrTaskStatus$TencentAsrTaskStatusBuilder;resultgetAudioDuration()Ljava/lang/Float;
floatValue()F(F)Ljava/lang/Float; audioDuration](Ljava/lang/Float;)Lcom/integration/api/dto/TencentAsrTaskStatus$TencentAsrTaskStatusBuilder; getErrorMsggetResultDetail<()[Lcom/tencentcloudapi/asr/v20190614/models/SentenceDetail; resultDetail0()Lcom/integration/api/dto/TencentAsrTaskStatus;setEngSerViceTypesetVoiceFormat getWordInfo setWordInfoSentenceRecognition<00>(Lcom/tencentcloudapi/asr/v20190614/models/SentenceRecognitionRequest;)Lcom/tencentcloudapi/asr/v20190614/models/SentenceRecognitionResponse;Y(Ljava/lang/Float;)Lcom/integration/api/dto/TencentAsrResponse$TencentAsrResponseBuilder; toLowerCaseendsWith(Ljava/lang/String;)Zorg/slf4j/LoggerFactory getLogger%(Ljava/lang/Class;)Lorg/slf4j/Logger;!<00><00><00><00><00><00><00><00><00><00><00><00>/*<2A><01><00><00> <00><00><00><00><00><01><00>*<2A><02><03>*<2A><02><03><04> <0A>Y<06><07>*<2A><02><08>*<2A><02><08><04> <0A>Y <09><07><>
 *<2A><02><08> *<2A><02> <0A><00>Y*<2A><02>*<2A><02><08>L<>Y<>M,<13>,*<2A><02><15><03>l<EFBFBD>,*<2A><02><18><03>l<EFBFBD><19>Y<>N-,<2C><1C>Y+*<2A><02> -<2D><1E>L<EFBFBD>
 +<2B>!<00>Y<>"Y<>#$<24>%+<2B>&<26>%<25>'<27><07><00><00><00>J%&!(8)B,K-[,`0v3~4<00>5<00>6<00>9<00>:<00>=<00>><00>?<00>@<00>4vP<00><00>~H<00><00><00><00><00><00>)<00><00><00><00><00><00>   <09><00><00><00><00><00><03><01><>
(+<2B>)<29>**<2A>+M<>,Y<>-N-+<2B>.<2E>
+<2B>.<2E>
*<2A><02>/<2F>0-+<2B>1<> +<2B>1<>2<> *<2A><02>3<>2<>4<>5-+<2B>6<> +<2B>6<>2<> *<2A><02>7<>2<>4<>8-+<2B>9<> +<2B>9<>2<> <09>4<>:+<2B>9<>!+<2B>9<><04>-+<2B>;<3B><-+<2B>=<3D>><3E> -+<2B>?<3F>@+<2B>A<>+<2B>A<><04> -+<2B>A<>B+<2B>C<>+<2B>C<><04> -+<2B>C<>D+<2B>E<>+<2B>E<>F<> -
<EFBFBD>4<>G+<2B>H<>+<2B>H<>F<> -
<EFBFBD>4<>I+<2B>J<>+<2B>J<>F<> -
<EFBFBD>4<>K,-<2D>L:<04>
M<04>N<>O<04>P<>Q<00>R<04>N<>O<>S<>T<03>U<>VW<>X<04>P<>Y<03>U<>Z[<5B>\<5C>]<5D>M<EFBFBD>
_,<2C>!<00>R<06>U<>V`<60>X<02>U<>Z,<2C>a<>\<5C>]<5D><01><01>^<00><00>3FILO$P1O4Q=RPQVS_TrSxU<00>V<00>U<00>Y<00>[<00>\<00>_<00>c<00>d<00>f<00>g<00>ij lm"o3p;uBwIxTwY{^|k}s~x<00><01><00><01><00><01>{<01><00><01><00><01><00><01><00><01><00><01><00><01><00><01><00><01><00><00>>{<00><00>s<00><00>BL<00><00><01>,<00><00><01><00><00><01><00><00><00><00><10>*<00><00><00><00><00><><00><00><00><00><00><00>T<00><> <00><00><00><00><00>W<00><> <00><00><00><00><00>W<00><><00><00><00><00><00>*<18>R<00><00><00><00><00><00><02><00><>
b+<2B>**<2A>+M<>cY<63>dN-+<2B>e<>4<>f,-<2D>g:<04>h:<05>
i<05>j<05>k<>Q*<05>j<>l<>m:<06>n+<2B>o<05>j<>l<>U<>p<06>q<05>k<>r<05>s<><05>s<>t<>u<><01>v<03>U<>w<05>x<> <05>x<>y<>z<05>{<7B><05>{<7B>)<29><01>|<7C>}<7D>M<EFBFBD>
~,<2C>!<00>n+<2B>o<06>U<>p<>q<02>U<>w,<2C>a<>z<>}<7D> <00><00>^<00><00>#<00> <00><00><00>#<00>*<00>1<00>8<00>@<00>E<00>S<00>W<00>\<00>j<00>o<00>w<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>R<00><00><00><00><00><00>*<00><00><00>1<00><00><00>Ss<00><00><00>0<00><00><00><00><00><00><00><00><00><00><07><00><00><00><00><00><00><00><00><00><><00><00><00><00><00><00><00><00><00>Y<00><><00><00><00><00><00><00><00><00><00>U<00><><00><00><00><00><00><00><00><00><00><><00><00><00><00><00><00>^<01><>
<12>+<2B>)<29>**<2A>+M<><00>Y<EFBFBD><00>N-+<2B>.<2E>
+<2B>.<2E>
*<2A><02>/<2F><00>-+<2B>9<> +<2B>9<>2<> <09>4<><00>-*+<2B>?<3F><00><><00>+<2B>9<>!+<2B>9<><04>-+<2B>;<3B><00>-+<2B>=<3D><00><> -+<2B>?<3F><00>+<2B>C<>+<2B>C<><04> -+<2B>C<><00>+<2B>E<>+<2B>E<>F<> -
<EFBFBD>4<><00>+<2B>H<>+<2B>H<>F<> -
<EFBFBD>4<><00>+<2B>J<>+<2B>J<>F<> -
<EFBFBD>4<><00>+<2B><00><>+<2B><00><>F<> -
<EFBFBD>4<><00>,-<2D><00>:<04>
<12><04><00><04><00><>Q<00>R<05>U<>V<12><>X<04><00><><00><04><00><><04><00><><00><>u<><01><00><01><00><04><00><>Y<03>U<>Z[<5B>\<5C>]<5D>M<EFBFBD>
<12>,<2C>!<00>R<06>U<>V`<60>X<02>U<>Z,<2C>a<>\<5C>]<5D>jk^<00><00>2<00><00><00><00>$<00>1<00>4<00>=<00>G<00>M<00>Y<00>k<00>s<00>~<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>
<00><00><00><00>"<00>*<00>/<00>7<00>?<00>L<00>P<00>U<00>\<00>d<00>g<00>j<00>k<00>l<00>w<00>{<00><01><01><01><01><01><00><00>>X<00><00>P<00><00>
a<00><00>l,<00><00><01><00><00><01><00><00><00><00><0E>*<00><00><00><00><00><><00><00><00><00><00><00>T<00><><00><00><00><00><00>6<18>G<00><00><00><00><00><00><><00><00><00><00><00><00><00><><00><00><00><00><00><00><00>/<1B>+"%(W<><12><><12><><12><><12><><00>  #&),<00>/<00><00>/<00><00><00> <00><00><00>j+<2B>
+<2B><04><12><>+<2B><00>M,<12><><00><><12><>,<12><><00><><12><>,<12><><00><><12><>,<12><><00><><12><>,<12><><00><><12><>,<12><><00><><12><>,<12><><00><><12><><12><><00>J !"#$(%+&4'7(@)C*L+O,X-[.d/g1<00> j<00><00>j<00><00>W<00><00><00> <02><00> <00><00><00>! <12><><00><>
<EFBFBD><00><00><00><00><00><01>rp<01> VS<01>