去掉部分console
This commit is contained in:
@@ -287,7 +287,7 @@ export function useRealtimeRecorderOnce() {
|
||||
source.connect(processor);
|
||||
processor.connect(audioContext.destination);
|
||||
|
||||
console.log('H5 16kHz WAV录音已启动');
|
||||
// console.log('H5 16kHz WAV录音已启动');
|
||||
|
||||
} catch (err) {
|
||||
console.error('H5录音启动失败:', err);
|
||||
@@ -336,7 +336,7 @@ export function useRealtimeRecorderOnce() {
|
||||
});
|
||||
|
||||
recorderManager.onStart(() => {
|
||||
console.log('APP 16kHz WAV录音已开始');
|
||||
// console.log('APP 16kHz WAV录音已开始');
|
||||
});
|
||||
|
||||
recorderManager.onError((err) => {
|
||||
@@ -373,7 +373,7 @@ export function useRealtimeRecorderOnce() {
|
||||
const cancelRecording = () => {
|
||||
if (!isRecording.value) return;
|
||||
|
||||
console.log('取消录音 - 丢弃结果');
|
||||
// console.log('取消录音 - 丢弃结果');
|
||||
|
||||
// 1. 停止硬件录音
|
||||
stopHardwareResource();
|
||||
@@ -506,7 +506,7 @@ export function useRealtimeRecorderOnce() {
|
||||
const wavBuffer = encodeWAV(mergedSamples, 16000, 1, 16);
|
||||
audioBlob = new Blob([wavBuffer], { type: 'audio/wav' });
|
||||
|
||||
console.log(`H5生成WAV文件: ${audioBlob.size} bytes, 时长: ${mergedSamples.length / 16000}秒`);
|
||||
// console.log(`H5生成WAV文件: ${audioBlob.size} bytes, 时长: ${mergedSamples.length / 16000}秒`);
|
||||
}
|
||||
// #endif
|
||||
|
||||
@@ -534,7 +534,7 @@ export function useRealtimeRecorderOnce() {
|
||||
const wavBuffer = encodeWAV(floatSamples, 16000, 1, 16);
|
||||
audioBlob = new Blob([wavBuffer], { type: 'audio/wav' });
|
||||
|
||||
console.log(`APP生成WAV文件: ${audioBlob.size} bytes, 时长: ${floatSamples.length / 16000}秒`);
|
||||
// console.log(`APP生成WAV文件: ${audioBlob.size} bytes, 时长: ${floatSamples.length / 16000}秒`);
|
||||
}
|
||||
// #endif
|
||||
|
||||
@@ -576,7 +576,7 @@ export function useRealtimeRecorderOnce() {
|
||||
a.click();
|
||||
document.body.removeChild(a);
|
||||
URL.revokeObjectURL(url);
|
||||
console.log('WAV文件已保存用于调试');
|
||||
// console.log('WAV文件已保存用于调试');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user