Browse Source

Merge branch '测试录音'

liushengqiang 2 years ago
parent
commit
b4b305c86d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/view/evaluating/recordAudio.ts

+ 1 - 1
src/view/evaluating/recordAudio.ts

@@ -69,7 +69,7 @@ function recStop() {
 			//此地址只能本地使用,比如赋值给audio.src进行播放,赋值给a.href然后a.click()进行下载(a需提供download="xxx.mp3"属性)
 			var localUrl = (window.URL || webkitURL).createObjectURL(blob);
             _download(blob, 'test', 'mp3')
-            window?.ORCHESTRA.writFile(blob)
+            window?.ORCHESTRA.writeFile(blob)
 			console.log(blob, localUrl, "时长:" + duration + "ms");
 			rec.close(); //释放录音资源,当然可以不释放,后面可以连续调用start;但不释放时系统或浏览器会一直提示在录音,最佳操作是录完就close掉
 			// rec=null;