Skip to content

Commit

Permalink
Refine the welcome voice.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jan 30, 2024
1 parent 1d94ec2 commit 0d10ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ func handleDownloadAnswerTTS(ctx context.Context, w http.ResponseWriter, r *http
if segment == nil {
return errors.Errorf("no segment for %v %v", rid, asid)
}
logger.Tf(ctx, "Query segment %v %v, dummy=%v, segment=%v, err=%v",
logger.Tf(ctx, "Query segment rid=%v, asid=%v, dummy=%v, segment=%v, err=%v",
rid, asid, segment.dummy, segment.text, segment.err)

if !segment.logged && segment.first {
Expand Down Expand Up @@ -1300,7 +1300,7 @@ func doConfig(ctx context.Context) error {
setEnvDefault(fmt.Sprintf("AIT_ROBOT_%v_REPLY_PREFIX", i), os.Getenv("AIT_REPLY_PREFIX"))

voice := "hello-english.aac"
if os.Getenv(fmt.Sprintf("AIT_ROBOT_%v_ASR_LANGUAGE", i)) != "en" {
if os.Getenv(fmt.Sprintf("AIT_ROBOT_%v_ASR_LANGUAGE", i)) == "zh" {
voice = "hello-chinese.aac"
}

Expand Down

0 comments on commit 0d10ac7

Please sign in to comment.