ػցֶशͷσϞΞϓϦͳͲΛ ؆୯ʹ࡞ΕΔ8FCΞϓϦ ϑϨʔϜϫʔΫ બఆཧ༝ w Իೖྗը૾ೖྗΛ ؆୯ʹ࡞ΕΔ w ॲཧͷεςοϓ͝ͱʹ ঃʑʹ݁ՌΛฦ͢Α͏ͳ 6*Λ࡞Γ͍͢ Իೖྗ෦ ʢHS"VEJPΫϥεʣ ૹ৴ϦηοτϘλϯ ʢHS#VUUPOΫϥεʣ จࣈى͜͠ͷ݁Ռ ʢHS5FYU#PYΫϥεʣ ૹ৴݁ՌʢHS5FYU#PYΫϥεʣ ੜ͞ΕͨίϚϯυʢHS+40/Ϋϥεʣ ೖྗྖҬ ग़ྗྖҬ audio_input = gr.Audio(sources=["microphone"], type="filepath", format=“wav") …ུ… audio_input.stop_recording(fn=handler_audio_input, # Իఀࢭ࣌ʹݺΕΔؔ inputs=audio_input, # σʔλͷೖྗݩͱͳΔ෦ # σʔλͷग़ྗઌͱͳΔ෦ outputs=[audio_transcript_output, audio_commands_output, audio_status_output, progress_lamps]) def handler_audio_input(audio_file): success, text = transcribe(audio_file) if success: yield text, None, "จࣈىྃ͜͠", render_lamps(["s", "u", "u"]) commands = text_to_command(text) commands = convert_commands(commands) yield text, commands, "ίϚϯυੜྃ", render_lamps(["s", "s", "u"]) response = send_commands(commands) status = response.get("status") yield text, commands, status, render_lamps(["s"] * 3) else: yield text, None, "จࣈى͜͠ʹࣦഊ͠·ͨ͠ɻऴྃ͠·͢", render_lamps(["e", "u", "u"]) ᶃ(SBEJPͷԻೖྗͷ෦Λ࡞ ᶄԻఀࢭ࣌ʹݺΕΔؔ σʔλͷग़ྗઌΛઃఆ ᶅจࣈى͜͠ͷॲཧΛߦ͏ ᶆจࣈى͜͠ͷ݁ՌΛZJFMEͰฦ͢ ᶈੜ"*ͷ݁ՌΛZJFMEͰฦ͢ ᶊQJDPΧʔͷಈ࡞݁ՌΛZJFMEͰฦ͢ ᶇੜ"*ͰίϚϯυʹม ᶉQJDPΧʔʹίϚϯυΛૹ৴ ॲཧͷਐḿϥϯϓ ʢHS)5.-Ϋϥεʣ Իఀࢭϋϯυϥ Իೖྗͷઃఆ จࣈى͜͠ͷ݁Ռ มޙͷίϚϯυ ૹ৴݁Ռ ॲཧͷਐḿϥϯϓ QJDP@DPOUSPMMFSBQQQZ