SpeechRecognizerImpl.smali
.class public Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;
.super Lcom/iflytek/thirdparty/w;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InternalListener;,
Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InterGrammarListener;,
Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InterUpdateLexicon;
}
.end annotation
# instance fields
.field private mRequestFocus:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
.prologue
.line 42
invoke-direct {p0, p1}, Lcom/iflytek/thirdparty/w;-><init>(Landroid/content/Context;)V
.line 39
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mRequestFocus:Z
.line 43
return-void
.end method
# virtual methods
.method public buildGrammar(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/cloud/GrammarListener;)I
.registers 7
.prologue
const/16 v0, 0x4e2c
.line 416
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_b
.line 417
const/16 v0, 0x4e29
.line 433
:cond_a
:goto_a
return v0
.line 421
:cond_b
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_a
.line 426
if-eqz p3, :cond_a
.line 430
new-instance v0, Lcom/iflytek/thirdparty/c;
invoke-direct {v0}, Lcom/iflytek/thirdparty/c;-><init>()V
.line 431
new-instance v1, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InterGrammarListener;
invoke-direct {v1, p0, p3}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InterGrammarListener;-><init>(Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;Lcom/iflytek/cloud/GrammarListener;)V
iget-object v2, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
invoke-virtual {v0, p1, p2, v1, v2}, Lcom/iflytek/thirdparty/c;->a(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/cloud/GrammarListener;Lcom/iflytek/thirdparty/ad;)I
.line 433
const/4 v0, 0x0
goto :goto_a
.end method
.method public cancel(Z)V
.registers 4
.prologue
.line 150
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSynObj:Ljava/lang/Object;
monitor-enter v1
.line 151
:try_start_3
invoke-virtual {p0}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->sessionEnd()V
.line 152
invoke-super {p0, p1}, Lcom/iflytek/thirdparty/w;->cancel(Z)V
.line 153
monitor-exit v1
.line 154
return-void
.line 153
:catchall_b
move-exception v0
monitor-exit v1
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_b
throw v0
.end method
.method public getLastBuffer()Ljava/util/concurrent/ConcurrentLinkedQueue;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/concurrent/ConcurrentLinkedQueue",
"<[B>;"
}
.end annotation
.prologue
.line 160
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSynObj:Ljava/lang/Object;
monitor-enter v1
.line 161
:try_start_3
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
if-eqz v0, :cond_11
.line 162
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/d;->b()Ljava/util/concurrent/ConcurrentLinkedQueue;
move-result-object v0
monitor-exit v1
.line 164
:goto_10
return-object v0
:cond_11
const/4 v0, 0x0
monitor-exit v1
goto :goto_10
.line 165
:catchall_14
move-exception v0
monitor-exit v1
:try_end_16
.catchall {:try_start_3 .. :try_end_16} :catchall_14
throw v0
.end method
.method protected isBosDispose()Z
.registers 4
.prologue
.line 466
const/4 v0, 0x0
.line 468
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v2, "bos_dispose"
invoke-virtual {v1, v2}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 469
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_1e
.line 470
const-string v0, "meta"
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v2, "vad_engine"
invoke-virtual {v1, v2}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
.line 475
:goto_1d
return v0
.line 472
:cond_1e
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v2, "bos_dispose"
invoke-virtual {v1, v2, v0}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v0
goto :goto_1d
.end method
.method public isListening()Z
.registers 2
.prologue
.line 409
invoke-virtual {p0}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->isRunning()Z
move-result v0
return v0
.end method
.method public pushSessionInfo(Ljava/lang/String;)V
.registers 4
.prologue
.line 51
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSynObj:Ljava/lang/Object;
monitor-enter v1
.line 52
:try_start_3
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
if-eqz v0, :cond_12
.line 53
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/d;->i()Lcom/iflytek/thirdparty/u;
move-result-object v0
invoke-virtual {v0, p1}, Lcom/iflytek/thirdparty/u;->a(Ljava/lang/String;)V
.line 55
:cond_12
monitor-exit v1
.line 56
return-void
.line 55
:catchall_14
move-exception v0
monitor-exit v1
:try_end_16
.catchall {:try_start_3 .. :try_end_16} :catchall_14
throw v0
.end method
.method protected sessionEnd()V
.registers 7
.prologue
const/4 v5, 0x0
.line 172
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
if-eqz v0, :cond_44
.line 173
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/s;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v1, "asr_audio_path"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 176
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_44
.line 177
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/d;->b()Ljava/util/concurrent/ConcurrentLinkedQueue;
move-result-object v0
invoke-static {v0, v1}, Lcom/iflytek/cloud/msc/util/FileUtil;->saveFile(Ljava/util/concurrent/ConcurrentLinkedQueue;Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_44
.line 178
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/s;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v0
const-string v2, "audio_format"
invoke-virtual {v0, v2, v5}, Lcom/iflytek/thirdparty/ad;->b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 179
iget-object v2, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
invoke-virtual {v2}, Lcom/iflytek/thirdparty/s;->getParam()Lcom/iflytek/thirdparty/ad;
move-result-object v2
const-string v3, "sample_rate"
iget-object v4, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
iget v4, v4, Lcom/iflytek/thirdparty/s;->mSampleRate:I
invoke-virtual {v2, v3, v4}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v2
.line 180
invoke-static {v0, v1, v2}, Lcom/iflytek/cloud/msc/util/FileUtil;->formatPcm(Ljava/lang/String;Ljava/lang/String;I)Z
.line 186
:cond_44
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mContext:Landroid/content/Context;
iget-boolean v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mRequestFocus:Z
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-static {v0, v1, v5}, Lcom/iflytek/cloud/msc/util/FuncAdapter;->UnLock(Landroid/content/Context;Ljava/lang/Boolean;Landroid/media/AudioManager$OnAudioFocusChangeListener;)Z
.line 187
return-void
.end method
.method public startListening(Lcom/iflytek/cloud/RecognizerListener;)I
.registers 8
.prologue
const/4 v1, 0x0
.line 65
.line 67
iget-object v2, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSynObj:Ljava/lang/Object;
monitor-enter v2
.line 69
:try_start_4
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v3, "request_audio_focus"
const/4 v4, 0x1
invoke-virtual {v0, v3, v4}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mRequestFocus:Z
.line 71
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
if-eqz v0, :cond_29
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/s;->isRunning()Z
move-result v0
if-eqz v0, :cond_29
.line 74
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
iget-object v3, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v4, "asr_interrupt_error"
const/4 v5, 0x0
invoke-virtual {v3, v4, v5}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v3
invoke-virtual {v0, v3}, Lcom/iflytek/thirdparty/s;->cancel(Z)V
.line 77
:cond_29
invoke-virtual {p0}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->isBosDispose()Z
move-result v0
if-eqz v0, :cond_5b
.line 78
new-instance v0, Lcom/iflytek/thirdparty/e;
iget-object v3, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mContext:Landroid/content/Context;
iget-object v4, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v5, "iat"
.line 79
invoke-virtual {p0, v5}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->getHandlerThread(Ljava/lang/String;)Landroid/os/HandlerThread;
move-result-object v5
invoke-direct {v0, v3, v4, v5}, Lcom/iflytek/thirdparty/e;-><init>(Landroid/content/Context;Lcom/iflytek/thirdparty/ad;Landroid/os/HandlerThread;)V
iput-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
.line 87
:goto_40
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mContext:Landroid/content/Context;
iget-boolean v3, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mRequestFocus:Z
invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v3
const/4 v4, 0x0
invoke-static {v0, v3, v4}, Lcom/iflytek/cloud/msc/util/FuncAdapter;->Lock(Landroid/content/Context;Ljava/lang/Boolean;Landroid/media/AudioManager$OnAudioFocusChangeListener;)Z
.line 88
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
new-instance v3, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InternalListener;
invoke-direct {v3, p0, p1}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InternalListener;-><init>(Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;Lcom/iflytek/cloud/RecognizerListener;)V
invoke-virtual {v0, v3}, Lcom/iflytek/thirdparty/d;->a(Lcom/iflytek/cloud/RecognizerListener;)V
:try_end_58
.catch Lcom/iflytek/cloud/SpeechError; {:try_start_4 .. :try_end_58} :catch_6d
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_58} :catch_77
.catchall {:try_start_4 .. :try_end_58} :catchall_7f
move v0, v1
.line 97
:goto_59
:try_start_59
monitor-exit v2
:try_end_5a
.catchall {:try_start_59 .. :try_end_5a} :catchall_7f
.line 99
return v0
.line 81
:cond_5b
:try_start_5b
new-instance v0, Lcom/iflytek/thirdparty/d;
iget-object v3, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mContext:Landroid/content/Context;
iget-object v4, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v5, "iat"
.line 82
invoke-virtual {p0, v5}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->getHandlerThread(Ljava/lang/String;)Landroid/os/HandlerThread;
move-result-object v5
invoke-direct {v0, v3, v4, v5}, Lcom/iflytek/thirdparty/d;-><init>(Landroid/content/Context;Lcom/iflytek/thirdparty/ad;Landroid/os/HandlerThread;)V
iput-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
:try_end_6c
.catch Lcom/iflytek/cloud/SpeechError; {:try_start_5b .. :try_end_6c} :catch_6d
.catch Ljava/lang/Throwable; {:try_start_5b .. :try_end_6c} :catch_77
.catchall {:try_start_5b .. :try_end_6c} :catchall_7f
goto :goto_40
.line 90
:catch_6d
move-exception v0
.line 91
:try_start_6e
invoke-virtual {v0}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I
move-result v1
.line 92
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
move v0, v1
.line 96
goto :goto_59
.line 93
:catch_77
move-exception v0
.line 94
const/16 v1, 0x5207
.line 95
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
move v0, v1
goto :goto_59
.line 97
:catchall_7f
move-exception v0
monitor-exit v2
:try_end_81
.catchall {:try_start_6e .. :try_end_81} :catchall_7f
throw v0
.end method
.method public stopListening()V
.registers 4
.prologue
.line 138
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSynObj:Ljava/lang/Object;
monitor-enter v1
.line 139
:try_start_3
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
if-eqz v0, :cond_f
.line 140
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
const/4 v2, 0x1
invoke-virtual {v0, v2}, Lcom/iflytek/thirdparty/d;->a(Z)Z
.line 142
:cond_f
monitor-exit v1
.line 143
return-void
.line 142
:catchall_11
move-exception v0
monitor-exit v1
:try_end_13
.catchall {:try_start_3 .. :try_end_13} :catchall_11
throw v0
.end method
.method public updateLexicon(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/cloud/LexiconListener;)I
.registers 9
.prologue
const/16 v0, 0x4e2c
const/4 v1, 0x0
.line 439
invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_c
.line 440
const/16 v0, 0x4e29
.line 462
:cond_b
:goto_b
return v0
.line 444
:cond_c
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-nez v2, :cond_b
.line 449
if-eqz p3, :cond_b
.line 453
new-instance v2, Lcom/iflytek/thirdparty/c;
invoke-direct {v2}, Lcom/iflytek/thirdparty/c;-><init>()V
.line 454
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v3, "subject"
const-string v4, "uup"
invoke-virtual {v0, v3, v4, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 455
const-string v0, "lexicon_type"
invoke-virtual {p0, v0}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->getParameter(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 456
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
if-eqz v3, :cond_2f
move-object v0, p1
.line 459
:cond_2f
iget-object v3, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v4, "data_type"
invoke-virtual {v3, v4, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 460
new-instance v0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InterUpdateLexicon;
invoke-direct {v0, p0, p3}, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl$InterUpdateLexicon;-><init>(Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;Lcom/iflytek/cloud/LexiconListener;)V
iget-object v3, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSessionParams:Lcom/iflytek/thirdparty/ad;
invoke-virtual {v2, p1, p2, v0, v3}, Lcom/iflytek/thirdparty/c;->a(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/cloud/LexiconListener;Lcom/iflytek/thirdparty/ad;)I
move v0, v1
.line 462
goto :goto_b
.end method
.method public writeAudio([BII)I
.registers 8
.prologue
const/16 v0, 0x277d
.line 110
iget-object v1, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mSynObj:Ljava/lang/Object;
monitor-enter v1
.line 111
:try_start_5
iget-object v2, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
if-nez v2, :cond_12
.line 112
const-string v0, "writeAudio error, no active session."
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 113
const/16 v0, 0x520c
monitor-exit v1
.line 130
:goto_11
return v0
.line 116
:cond_12
if-eqz p1, :cond_17
array-length v2, p1
if-gtz v2, :cond_21
.line 117
:cond_17
const-string v2, "writeAudio error,buffer is null."
invoke-static {v2}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 118
monitor-exit v1
goto :goto_11
.line 131
:catchall_1e
move-exception v0
monitor-exit v1
:try_end_20
.catchall {:try_start_5 .. :try_end_20} :catchall_1e
throw v0
.line 121
:cond_21
:try_start_21
array-length v2, p1
add-int v3, p3, p2
if-ge v2, v3, :cond_2d
.line 122
const-string v2, "writeAudio error,buffer length < length."
invoke-static {v2}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 123
monitor-exit v1
goto :goto_11
.line 126
:cond_2d
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
invoke-virtual {v0}, Lcom/iflytek/thirdparty/d;->a()I
move-result v0
const/4 v2, -0x1
if-eq v0, v2, :cond_3c
.line 127
const/16 v0, 0x277a
monitor-exit v1
goto :goto_11
.line 130
:cond_3c
iget-object v0, p0, Lcom/iflytek/cloud/speech/impl/SpeechRecognizerImpl;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/d;
invoke-virtual {v0, p1, p2, p3}, Lcom/iflytek/thirdparty/d;->a([BII)I
move-result v0
monitor-exit v1
:try_end_45
.catchall {:try_start_21 .. :try_end_45} :catchall_1e
goto :goto_11
.end method