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(
104
104
# 音声モードの場合、Whisper 設定を表示
105
105
if input_output_mode == "音声" :
106
106
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
+ )
107
115
selected_model = st .sidebar .selectbox (
108
116
"Whisperモデル" ,
109
117
[
@@ -206,16 +214,6 @@ def synthesize_audio(
206
214
prompt_files = []
207
215
208
216
if 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
-
219
217
if audio_bytes :
220
218
st .audio (audio_bytes , format = "audio/wav" )
221
219
You can’t perform that action at this time.
0 commit comments