ab.smali
.class public Lcom/iflytek/thirdparty/ab;
.super Lcom/iflytek/thirdparty/w;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/iflytek/thirdparty/ab$a;
}
.end annotation
# instance fields
.field public a:Z
.field public b:Z
.field public c:Ljava/lang/String;
.field public d:Lcom/iflytek/cloud/SpeechError;
.field final e:Landroid/os/Handler;
.field private f:Lcom/iflytek/cloud/record/c;
.field private g:Lcom/iflytek/cloud/record/b;
.field private h:Lcom/iflytek/cloud/SynthesizerListener;
.field private i:Lcom/iflytek/cloud/SynthesizerListener;
.field private j:Lcom/iflytek/thirdparty/ab$a;
.field private k:I
.field private l:Z
.field private m:Lcom/iflytek/thirdparty/aa;
.field private n:Lcom/iflytek/cloud/record/c$a;
.field private o:Landroid/os/Handler;
.field private p:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 4
.prologue
const/4 v1, 0x0
const/4 v0, 0x0
.line 70
invoke-direct {p0, p1}, Lcom/iflytek/thirdparty/w;-><init>(Landroid/content/Context;)V
.line 42
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
.line 44
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
.line 46
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
.line 49
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
.line 52
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->j:Lcom/iflytek/thirdparty/ab$a;
.line 55
iput v1, p0, Lcom/iflytek/thirdparty/ab;->k:I
.line 57
iput-boolean v1, p0, Lcom/iflytek/thirdparty/ab;->l:Z
.line 59
iput-boolean v1, p0, Lcom/iflytek/thirdparty/ab;->a:Z
.line 61
iput-boolean v1, p0, Lcom/iflytek/thirdparty/ab;->b:Z
.line 65
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->c:Ljava/lang/String;
.line 67
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->d:Lcom/iflytek/cloud/SpeechError;
.line 308
new-instance v0, Lcom/iflytek/thirdparty/ab$1;
invoke-direct {v0, p0}, Lcom/iflytek/thirdparty/ab$1;-><init>(Lcom/iflytek/thirdparty/ab;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->m:Lcom/iflytek/thirdparty/aa;
.line 389
new-instance v0, Lcom/iflytek/thirdparty/ab$2;
invoke-direct {v0, p0}, Lcom/iflytek/thirdparty/ab$2;-><init>(Lcom/iflytek/thirdparty/ab;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->n:Lcom/iflytek/cloud/record/c$a;
.line 454
new-instance v0, Lcom/iflytek/thirdparty/ab$3;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, p0, v1}, Lcom/iflytek/thirdparty/ab$3;-><init>(Lcom/iflytek/thirdparty/ab;Landroid/os/Looper;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->o:Landroid/os/Handler;
.line 522
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->p:Z
.line 684
new-instance v0, Lcom/iflytek/thirdparty/ab$5;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, p0, v1}, Lcom/iflytek/thirdparty/ab$5;-><init>(Lcom/iflytek/thirdparty/ab;Landroid/os/Looper;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->e:Landroid/os/Handler;
.line 71
return-void
.end method
.method static synthetic a(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/cloud/SynthesizerListener;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
return-object v0
.end method
.method static synthetic b(Lcom/iflytek/thirdparty/ab;)Landroid/os/Handler;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->o:Landroid/os/Handler;
return-object v0
.end method
.method static synthetic c(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/cloud/record/b;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
return-object v0
.end method
.method static synthetic d(Lcom/iflytek/thirdparty/ab;)V
.registers 1
.prologue
.line 34
invoke-direct {p0}, Lcom/iflytek/thirdparty/ab;->g()V
return-void
.end method
.method static synthetic e(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic f(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic g(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/ab$a;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->j:Lcom/iflytek/thirdparty/ab$a;
return-object v0
.end method
.method private g()V
.registers 5
.prologue
const/4 v3, 0x1
.line 227
iget-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->l:Z
if-nez v0, :cond_2b
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
if-eqz v0, :cond_2b
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
iget v1, p0, Lcom/iflytek/thirdparty/ab;->k:I
invoke-virtual {v0, v1}, Lcom/iflytek/cloud/record/b;->b(I)Z
move-result v0
if-eqz v0, :cond_2b
.line 229
iput-boolean v3, p0, Lcom/iflytek/thirdparty/ab;->l:Z
.line 230
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
iget-object v2, p0, Lcom/iflytek/thirdparty/ab;->n:Lcom/iflytek/cloud/record/c$a;
invoke-virtual {v0, v1, v2}, Lcom/iflytek/cloud/record/c;->a(Lcom/iflytek/cloud/record/b;Lcom/iflytek/cloud/record/c$a;)Z
.line 231
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
if-eqz v0, :cond_2b
.line 232
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->o:Landroid/os/Handler;
invoke-static {v0, v3}, Landroid/os/Message;->obtain(Landroid/os/Handler;I)Landroid/os/Message;
move-result-object v0
invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
.line 234
:cond_2b
return-void
.end method
.method static synthetic h(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic i(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/cloud/record/c;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
return-object v0
.end method
.method static synthetic j(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/cloud/SynthesizerListener;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
return-object v0
.end method
.method static synthetic k(Lcom/iflytek/thirdparty/ab;)Z
.registers 2
.prologue
.line 34
iget-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->p:Z
return v0
.end method
.method static synthetic l(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic m(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic n(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic o(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic p(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic q(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic r(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic s(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
.method static synthetic t(Lcom/iflytek/thirdparty/ab;)Lcom/iflytek/thirdparty/s;
.registers 2
.prologue
.line 34
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
return-object v0
.end method
# virtual methods
.method public declared-synchronized a(Ljava/lang/String;Lcom/iflytek/thirdparty/ad;Lcom/iflytek/cloud/SynthesizerListener;ZLjava/lang/String;)I
.registers 13
.prologue
const/4 v6, 0x0
.line 111
monitor-enter p0
.line 114
:try_start_2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "tts start:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 115
iput-object p3, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
.line 116
iput-object p1, p0, Lcom/iflytek/thirdparty/ab;->c:Ljava/lang/String;
.line 117
invoke-virtual {p0, p2}, Lcom/iflytek/thirdparty/ab;->setParameter(Lcom/iflytek/thirdparty/ad;)Z
.line 118
const-string v0, "stream_type"
const/4 v1, 0x3
invoke-virtual {p2, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v2
.line 120
const-string v0, "request_audio_focus"
const/4 v1, 0x1
invoke-virtual {p2, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v3
.line 123
if-eqz p4, :cond_56
.line 124
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v1, "tts_buf_fading"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->d(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 125
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/iflytek/thirdparty/ad;->b(Ljava/lang/String;Z)Z
move-result v5
.line 127
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v1, "tts_fading"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->d(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 128
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/iflytek/thirdparty/ad;->b(Ljava/lang/String;Z)Z
move-result v4
.line 129
new-instance v0, Lcom/iflytek/cloud/record/c;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mContext:Landroid/content/Context;
invoke-direct/range {v0 .. v5}, Lcom/iflytek/cloud/record/c;-><init>(Landroid/content/Context;IZZZ)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
.line 132
:cond_56
new-instance v0, Lcom/iflytek/thirdparty/z;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mContext:Landroid/content/Context;
const-string v2, "tts"
invoke-virtual {p0, v2}, Lcom/iflytek/thirdparty/ab;->getHandlerThread(Ljava/lang/String;)Landroid/os/HandlerThread;
move-result-object v2
invoke-direct {v0, v1, p2, v2}, Lcom/iflytek/thirdparty/z;-><init>(Landroid/content/Context;Lcom/iflytek/thirdparty/ad;Landroid/os/HandlerThread;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
.line 134
const/4 v0, 0x1
const-string v1, "tts_min_audio_len"
const/4 v2, 0x0
invoke-virtual {p2, v1, v2}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v1
div-int/lit16 v1, v1, 0x3e8
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
move-result v4
.line 135
if-eqz p1, :cond_d8
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
move v3, v0
.line 137
:goto_7a
const-string v0, "tts_proc_scale"
const/16 v1, 0x64
invoke-virtual {p2, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v5
.line 138
new-instance v0, Lcom/iflytek/cloud/record/b;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
invoke-virtual {v2}, Lcom/iflytek/thirdparty/s;->getSampleRate()I
move-result v2
add-int/2addr v3, v4
move-object v4, p5
invoke-direct/range {v0 .. v5}, Lcom/iflytek/cloud/record/b;-><init>(Landroid/content/Context;IILjava/lang/String;I)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
.line 140
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v1, "end_with_null"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->d(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 141
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
const/4 v2, 0x1
invoke-static {v0, v2}, Lcom/iflytek/thirdparty/ad;->b(Ljava/lang/String;Z)Z
move-result v0
invoke-virtual {v1, v0}, Lcom/iflytek/cloud/record/b;->a(Z)V
.line 144
const-string v0, "tts_buffer_time"
const/4 v1, 0x0
invoke-virtual {p2, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v0
iput v0, p0, Lcom/iflytek/thirdparty/ab;->k:I
.line 145
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "minPlaySec:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
iget v1, p0, Lcom/iflytek/thirdparty/ab;->k:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 146
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->l:Z
.line 148
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/z;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->m:Lcom/iflytek/thirdparty/aa;
invoke-virtual {v0, p1, v1}, Lcom/iflytek/thirdparty/z;->a(Ljava/lang/String;Lcom/iflytek/thirdparty/aa;)V
.line 149
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->a:Z
:try_end_d5
.catch Lcom/iflytek/cloud/SpeechError; {:try_start_2 .. :try_end_d5} :catch_da
.catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_d5} :catch_e7
.catchall {:try_start_2 .. :try_end_d5} :catchall_e4
move v0, v6
.line 158
:goto_d6
monitor-exit p0
return v0
:cond_d8
move v3, v6
.line 135
goto :goto_7a
.line 150
:catch_da
move-exception v0
move-object v1, v0
.line 151
:try_start_dc
invoke-virtual {v1}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I
move-result v0
.line 152
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:try_end_e3
.catchall {:try_start_dc .. :try_end_e3} :catchall_e4
goto :goto_d6
.line 111
:catchall_e4
move-exception v0
monitor-exit p0
throw v0
.line 153
:catch_e7
move-exception v0
move-object v1, v0
.line 154
const/16 v0, 0x5207
.line 155
:try_start_eb
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
:try_end_ee
.catchall {:try_start_eb .. :try_end_ee} :catchall_e4
goto :goto_d6
.end method
.method public a(Ljava/lang/String;Ljava/lang/String;Lcom/iflytek/thirdparty/ad;Lcom/iflytek/cloud/SynthesizerListener;)I
.registers 12
.prologue
const/4 v6, 0x0
.line 532
.line 535
:try_start_1
const-string v0, "message_main_thread"
const/4 v1, 0x1
invoke-virtual {p3, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->p:Z
.line 536
iput-object p4, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
.line 537
new-instance v0, Lcom/iflytek/thirdparty/z;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mContext:Landroid/content/Context;
const-string v2, "tts"
invoke-virtual {p0, v2}, Lcom/iflytek/thirdparty/ab;->getHandlerThread(Ljava/lang/String;)Landroid/os/HandlerThread;
move-result-object v2
invoke-direct {v0, v1, p3, v2}, Lcom/iflytek/thirdparty/z;-><init>(Landroid/content/Context;Lcom/iflytek/thirdparty/ad;Landroid/os/HandlerThread;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
.line 538
const/4 v0, 0x1
const-string v1, "tts_min_audio_len"
const/4 v2, 0x0
invoke-virtual {p3, v1, v2}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v1
div-int/lit16 v1, v1, 0x3e8
invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I
move-result v4
.line 539
if-eqz p1, :cond_57
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
move v3, v0
.line 540
:goto_30
const-string v0, "tts_proc_scale"
const/16 v1, 0x64
invoke-virtual {p3, v0, v1}, Lcom/iflytek/thirdparty/ad;->a(Ljava/lang/String;I)I
move-result v5
.line 541
new-instance v0, Lcom/iflytek/cloud/record/b;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mContext:Landroid/content/Context;
iget-object v2, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
invoke-virtual {v2}, Lcom/iflytek/thirdparty/s;->getSampleRate()I
move-result v2
add-int/2addr v3, v4
move-object v4, p2
invoke-direct/range {v0 .. v5}, Lcom/iflytek/cloud/record/b;-><init>(Landroid/content/Context;IILjava/lang/String;I)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
.line 543
new-instance v1, Lcom/iflytek/thirdparty/ab$4;
invoke-direct {v1, p0, p2}, Lcom/iflytek/thirdparty/ab$4;-><init>(Lcom/iflytek/thirdparty/ab;Ljava/lang/String;)V
.line 672
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mscer:Lcom/iflytek/thirdparty/s;
check-cast v0, Lcom/iflytek/thirdparty/z;
invoke-virtual {v0, p1, v1}, Lcom/iflytek/thirdparty/z;->a(Ljava/lang/String;Lcom/iflytek/thirdparty/aa;)V
:try_end_55
.catch Lcom/iflytek/cloud/SpeechError; {:try_start_1 .. :try_end_55} :catch_59
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_55} :catch_63
move v0, v6
.line 681
:goto_56
return v0
:cond_57
move v3, v6
.line 539
goto :goto_30
.line 673
:catch_59
move-exception v0
move-object v1, v0
.line 674
invoke-virtual {v1}, Lcom/iflytek/cloud/SpeechError;->getErrorCode()I
move-result v0
.line 675
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
goto :goto_56
.line 676
:catch_63
move-exception v0
move-object v1, v0
.line 677
const/16 v0, 0x5207
.line 678
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogE(Ljava/lang/Throwable;)V
goto :goto_56
.end method
.method public a()V
.registers 7
.prologue
.line 86
iget-boolean v0, p0, Lcom/iflytek/thirdparty/ab;->b:Z
if-eqz v0, :cond_5
.line 91
:goto_4
return-void
.line 89
:cond_5
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const-string v1, "tts_next_audio_path"
invoke-virtual {v0, v1}, Lcom/iflytek/thirdparty/ad;->e(Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
.line 90
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->c:Ljava/lang/String;
iget-object v2, p0, Lcom/iflytek/thirdparty/ab;->mSessionParams:Lcom/iflytek/thirdparty/ad;
const/4 v3, 0x0
const/4 v4, 0x0
move-object v0, p0
invoke-virtual/range {v0 .. v5}, Lcom/iflytek/thirdparty/ab;->a(Ljava/lang/String;Lcom/iflytek/thirdparty/ad;Lcom/iflytek/cloud/SynthesizerListener;ZLjava/lang/String;)I
goto :goto_4
.end method
.method public a(Lcom/iflytek/cloud/SynthesizerListener;)V
.registers 2
.prologue
.line 163
iput-object p1, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
.line 164
return-void
.end method
.method public a(Lcom/iflytek/thirdparty/ab$a;)V
.registers 2
.prologue
.line 99
iput-object p1, p0, Lcom/iflytek/thirdparty/ab;->j:Lcom/iflytek/thirdparty/ab$a;
.line 100
return-void
.end method
.method public a(Ljava/lang/String;Lcom/iflytek/thirdparty/ad;)V
.registers 3
.prologue
.line 78
invoke-virtual {p0, p2}, Lcom/iflytek/thirdparty/ab;->setParameter(Lcom/iflytek/thirdparty/ad;)Z
.line 79
iput-object p1, p0, Lcom/iflytek/thirdparty/ab;->c:Ljava/lang/String;
.line 80
return-void
.end method
.method public b()I
.registers 2
.prologue
.line 171
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
if-eqz v0, :cond_f
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
if-eqz v0, :cond_f
.line 172
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
invoke-virtual {v0}, Lcom/iflytek/cloud/record/c;->a()I
move-result v0
.line 173
:goto_e
return v0
:cond_f
const/4 v0, 0x4
goto :goto_e
.end method
.method public c()V
.registers 2
.prologue
.line 193
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
if-eqz v0, :cond_d
.line 195
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
invoke-virtual {v0}, Lcom/iflytek/cloud/record/c;->c()Z
.line 197
:cond_d
return-void
.end method
.method public cancel(Z)V
.registers 8
.prologue
const/16 v5, 0x520a
const/4 v4, 0x6
const/4 v3, 0x0
const/4 v2, 0x0
.line 258
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "SpeakSession cancel notifyError:"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 260
invoke-virtual {p0}, Lcom/iflytek/thirdparty/ab;->e()Z
move-result v0
if-eqz v0, :cond_5f
.line 262
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
if-eqz v0, :cond_2a
.line 263
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
invoke-interface {v0, v5, v2, v2, v3}, Lcom/iflytek/cloud/SynthesizerListener;->onEvent(IIILandroid/os/Bundle;)V
.line 264
:cond_2a
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
if-eqz v0, :cond_33
.line 265
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
invoke-interface {v0, v5, v2, v2, v3}, Lcom/iflytek/cloud/SynthesizerListener;->onEvent(IIILandroid/os/Bundle;)V
.line 267
:cond_33
if-eqz p1, :cond_5f
.line 269
new-instance v0, Lcom/iflytek/cloud/SpeechError;
const/16 v1, 0x4e31
invoke-direct {v0, v1}, Lcom/iflytek/cloud/SpeechError;-><init>(I)V
.line 270
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
if-eqz v1, :cond_4e
.line 271
const-string v1, "tts-onCompleted-cancel"
invoke-static {v1}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 272
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->o:Landroid/os/Handler;
invoke-static {v1, v4, v0}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;
move-result-object v1
invoke-virtual {v1}, Landroid/os/Message;->sendToTarget()V
.line 275
:cond_4e
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
if-eqz v1, :cond_5f
.line 276
iget-boolean v1, p0, Lcom/iflytek/thirdparty/ab;->p:Z
if-eqz v1, :cond_70
.line 277
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->e:Landroid/os/Handler;
invoke-static {v1, v4, v0}, Landroid/os/Message;->obtain(Landroid/os/Handler;ILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
.line 284
:cond_5f
:goto_5f
iput-object v3, p0, Lcom/iflytek/thirdparty/ab;->h:Lcom/iflytek/cloud/SynthesizerListener;
.line 285
iput-object v3, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
.line 286
invoke-super {p0, v2}, Lcom/iflytek/thirdparty/w;->cancel(Z)V
.line 287
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
if-eqz v0, :cond_6f
.line 288
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
invoke-virtual {v0}, Lcom/iflytek/cloud/record/c;->e()V
.line 291
:cond_6f
return-void
.line 279
:cond_70
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->i:Lcom/iflytek/cloud/SynthesizerListener;
invoke-interface {v1, v0}, Lcom/iflytek/cloud/SynthesizerListener;->onCompleted(Lcom/iflytek/cloud/SpeechError;)V
goto :goto_5f
.end method
.method public d()V
.registers 4
.prologue
.line 200
const-string v0, "Session replay"
invoke-static {v0}, Lcom/iflytek/cloud/msc/util/log/DebugLog;->LogD(Ljava/lang/String;)V
.line 201
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
if-eqz v0, :cond_1f
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
if-eqz v0, :cond_1f
const/4 v0, 0x4
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
invoke-virtual {v1}, Lcom/iflytek/cloud/record/c;->a()I
move-result v1
if-ne v0, v1, :cond_1f
.line 204
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
iget-object v2, p0, Lcom/iflytek/thirdparty/ab;->n:Lcom/iflytek/cloud/record/c$a;
invoke-virtual {v0, v1, v2}, Lcom/iflytek/cloud/record/c;->b(Lcom/iflytek/cloud/record/b;Lcom/iflytek/cloud/record/c$a;)Z
.line 206
:cond_1f
return-void
.end method
.method public destroy()Z
.registers 3
.prologue
.line 296
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mSynObj:Ljava/lang/Object;
monitor-enter v1
.line 297
const/4 v0, 0x0
:try_start_4
invoke-virtual {p0, v0}, Lcom/iflytek/thirdparty/ab;->cancel(Z)V
.line 298
const/4 v0, 0x1
monitor-exit v1
return v0
.line 299
:catchall_a
move-exception v0
monitor-exit v1
:try_end_c
.catchall {:try_start_4 .. :try_end_c} :catchall_a
throw v0
.end method
.method public e()Z
.registers 4
.prologue
const/4 v0, 0x1
.line 214
invoke-virtual {p0}, Lcom/iflytek/thirdparty/ab;->isRunning()Z
move-result v1
if-eqz v1, :cond_8
.line 219
:cond_7
:goto_7
return v0
.line 216
:cond_8
invoke-virtual {p0}, Lcom/iflytek/thirdparty/ab;->b()I
move-result v1
const/4 v2, 0x4
if-eq v1, v2, :cond_15
.line 217
invoke-virtual {p0}, Lcom/iflytek/thirdparty/ab;->b()I
move-result v1
if-nez v1, :cond_7
.line 219
:cond_15
const/4 v0, 0x0
goto :goto_7
.end method
.method public f()V
.registers 3
.prologue
.line 241
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->g:Lcom/iflytek/cloud/record/b;
if-eqz v0, :cond_e
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
if-eqz v0, :cond_e
.line 244
iget-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
invoke-virtual {v0}, Lcom/iflytek/cloud/record/c;->d()Z
.line 251
:goto_d
return-void
.line 248
:cond_e
new-instance v0, Lcom/iflytek/cloud/record/c;
iget-object v1, p0, Lcom/iflytek/thirdparty/ab;->mContext:Landroid/content/Context;
invoke-direct {v0, v1}, Lcom/iflytek/cloud/record/c;-><init>(Landroid/content/Context;)V
iput-object v0, p0, Lcom/iflytek/thirdparty/ab;->f:Lcom/iflytek/cloud/record/c;
.line 249
invoke-direct {p0}, Lcom/iflytek/thirdparty/ab;->g()V
goto :goto_d
.end method
.method public isRunning()Z
.registers 2
.prologue
.line 722
invoke-super {p0}, Lcom/iflytek/thirdparty/w;->isRunning()Z
move-result v0
return v0
.end method