|
@@ -419,6 +419,9 @@
|
|
</div>
|
|
</div>
|
|
</HcDialog>
|
|
</HcDialog>
|
|
|
|
|
|
|
|
+ <audio id="testAudio" controls style="position: absolute;top: 0;left: 40%;">
|
|
|
|
+ <source type="audio/wav">
|
|
|
|
+ </audio>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -1539,6 +1542,9 @@ const startRecorder = (stream) => {
|
|
clearTimeout(micTimeRef.value);
|
|
clearTimeout(micTimeRef.value);
|
|
micTimeRef.value = null
|
|
micTimeRef.value = null
|
|
let audioFile = new Blob([event.data], { type: "audio/wav" });
|
|
let audioFile = new Blob([event.data], { type: "audio/wav" });
|
|
|
|
+ const dom = document.getElementById("testAudio")
|
|
|
|
+ dom.src = URL.createObjectURL(audioFile);
|
|
|
|
+ dom.play()
|
|
transcribeApi(audioFile)
|
|
transcribeApi(audioFile)
|
|
});
|
|
});
|
|
}
|
|
}
|