|
|
@@ -127,10 +127,20 @@ export default {
|
|
|
// 开始录音
|
|
|
startRecord() {
|
|
|
let iframe = this.$refs["iframeRef"];
|
|
|
- iframe.contentWindow.window.document.getElementById(
|
|
|
- "languageOptions"
|
|
|
- ).selectedIndex = 2;
|
|
|
-
|
|
|
+ if(this.lang.lang == 'com'){
|
|
|
+ iframe.contentWindow.window.document.getElementById(
|
|
|
+ "languageOptions"
|
|
|
+ ).selectedIndex = 8;
|
|
|
+ }else if(this.lang.lang == 'hk'){
|
|
|
+ iframe.contentWindow.window.document.getElementById(
|
|
|
+ "languageOptions"
|
|
|
+ ).selectedIndex = 4;
|
|
|
+ }else{
|
|
|
+ iframe.contentWindow.window.document.getElementById(
|
|
|
+ "languageOptions"
|
|
|
+ ).selectedIndex = 2;
|
|
|
+ }
|
|
|
+
|
|
|
iframe.contentWindow.window.onRecognizedResult = e => {
|
|
|
console.log("onRecognizedResult", e)
|
|
|
let privText = e.privText;
|