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 @@ -156,6 +156,14 @@ def synthesize_audio(
156
156
max_value = 10 ,
157
157
value = 0 ,
158
158
)
159
+ audio_bytes = audio_recorder (
160
+ text = "クリックして音声入力" ,
161
+ recording_color = "red" ,
162
+ neutral_color = "gray" ,
163
+ icon_name = "microphone" ,
164
+ icon_size = "2x" ,
165
+ key = "audio_input" ,
166
+ )
159
167
160
168
st .divider ()
161
169
st .subheader ("使用するツール" )
@@ -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