File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
template_langgraph/services/streamlits/pages Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,14 @@ def synthesize_audio(
104104 # 音声モードの場合、Whisper 設定を表示
105105 if input_output_mode == "音声" :
106106 st .subheader ("音声認識設定 (オプション)" )
107+ audio_bytes = audio_recorder (
108+ text = "クリックして音声入力👉️" ,
109+ recording_color = "red" ,
110+ neutral_color = "gray" ,
111+ icon_name = "microphone" ,
112+ icon_size = "2x" ,
113+ key = "audio_input" ,
114+ )
107115 selected_model = st .sidebar .selectbox (
108116 "Whisperモデル" ,
109117 [
@@ -206,16 +214,6 @@ def synthesize_audio(
206214prompt_files = []
207215
208216if input_output_mode == "音声" :
209- st .subheader ("🎤 音声入力" )
210- audio_bytes = audio_recorder (
211- text = "クリックして録音" ,
212- recording_color = "red" ,
213- neutral_color = "gray" ,
214- icon_name = "microphone" ,
215- icon_size = "2x" ,
216- key = "audio_input" ,
217- )
218-
219217 if audio_bytes :
220218 st .audio (audio_bytes , format = "audio/wav" )
221219
You can’t perform that action at this time.
0 commit comments