Skip to content

Commit

Permalink
🎨 isAudioInitialized の判定が上手く動作していないので条件分岐をコメントアウトした
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Jan 3, 2025
1 parent 423259a commit f398adb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions frontend/src/app/_components/InputPromptForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,17 @@ export function InputPromptForm() {
setIsSpeaking(false);
}

if (!isAudioInitialized) {
log.info('音声が初期化されていません。初期化を試みます。');
const initialized = await initializeAudio();
if (!initialized) {
log.error('音声の初期化に失敗しました');
return;
}
// if (!isAudioInitialized) {
// log.info('音声が初期化されていません。初期化を試みます。');
// const initialized = await initializeAudio();
// if (!initialized) {
// log.error('音声の初期化に失敗しました');
// return;
// }
// }

if (audioContextRef.current?.state === 'suspended') {
await audioContextRef.current?.resume();
}

try {
Expand Down

0 comments on commit f398adb

Please sign in to comment.