mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
keep blank for english asr result (#623)
This commit is contained in:
parent
b805d85fd8
commit
4a33f08def
@ -66,16 +66,18 @@ function getJsonMessage( jsonMsg ) {
|
||||
var asrmodel=JSON.parse(jsonMsg.data)['mode'];
|
||||
if(asrmodel=="2pass-offline")
|
||||
{
|
||||
offline_text=offline_text+rectxt.replace(/ +/g,"");
|
||||
offline_text=offline_text+rectxt; //.replace(/ +/g,"");
|
||||
rec_text=offline_text;
|
||||
}
|
||||
else
|
||||
{
|
||||
rec_text=rec_text+rectxt.replace(/ +/g,"");
|
||||
rec_text=rec_text+rectxt; //.replace(/ +/g,"");
|
||||
}
|
||||
var varArea=document.getElementById('varArea');
|
||||
|
||||
varArea.value=rec_text;
|
||||
console.log( "offline_text: " + asrmodel+","+offline_text);
|
||||
console.log( "rec_text: " + rec_text);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user