LawrenceBai commited on
Commit
ab174cb
·
1 Parent(s): c7b9514

fix: resolve 404 error for pcm-recorder-worklet.js in voice login and update gitignore

Browse files
.gitignore CHANGED
@@ -124,10 +124,10 @@ tmp/
124
  temp/
125
 
126
  # Audio/Video processing temporary files
 
127
  *.wav.tmp
128
  *.mp3.tmp
129
  *.mp4.tmp
130
-
131
  # Machine Learning models (commented out - we want to commit all model files)
132
  # *.joblib
133
  # *.pkl
 
124
  temp/
125
 
126
  # Audio/Video processing temporary files
127
+ *.wav
128
  *.wav.tmp
129
  *.mp3.tmp
130
  *.mp4.tmp
 
131
  # Machine Learning models (commented out - we want to commit all model files)
132
  # *.joblib
133
  # *.pkl
bloom-ware-login/components/login-form.tsx CHANGED
@@ -281,7 +281,7 @@ export function LoginForm() {
281
 
282
  // 設定錄音參數
283
  audioContext = new AudioContext({ sampleRate: 16000 });
284
- await audioContext.audioWorklet.addModule('/audio/pcm-recorder-worklet.js');
285
  await audioContext.resume();
286
  source = audioContext.createMediaStreamSource(stream);
287
  processor = new AudioWorkletNode(audioContext, 'pcm-recorder-processor', {
 
281
 
282
  // 設定錄音參數
283
  audioContext = new AudioContext({ sampleRate: 16000 });
284
+ await audioContext.audioWorklet.addModule('/login/audio/pcm-recorder-worklet.js');
285
  await audioContext.resume();
286
  source = audioContext.createMediaStreamSource(stream);
287
  processor = new AudioWorkletNode(audioContext, 'pcm-recorder-processor', {