/
githubmirror
/
AgentPilot
Обзор
Документация
Войти
/
githubmirror
/
AgentPilot
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/plugins/realtimestt/modules/speech_plugin.py
15 строк
412 B
jbexta
0.3.2
12 сен 2024, 00:40
12 сен 2024, 00:40
60cc9b9
Код
Авторство
О чём код?
# from src.plugins.realtimestt.src.audio_recorder import AudioToTextRecorder # # # class RealtimeTTS_Speech: # def __init__(self, *args, **kwargs): # super().__init__(*args, **kwargs) # # self.recorder = AudioToTextRecorder() # # def process_chunk(self, text): # print(text) # # def transcribe(self): # while True: # self.recorder.text(self.process_chunk)