viz update
This commit is contained in:
parent
ed629ff60e
commit
9222c59f03
2 changed files with 145 additions and 38 deletions
10
voice_rtc.py
10
voice_rtc.py
|
|
@ -341,14 +341,14 @@ class CommandSpeechToText:
|
|||
|
||||
class FasterWhisperSpeechToText:
|
||||
def __init__(self) -> None:
|
||||
self._model_name = os.getenv("HOST_STT_MODEL", "base.en").strip() or "base.en"
|
||||
self._model_name = os.getenv("HOST_STT_MODEL", "tiny.en").strip() or "tiny.en"
|
||||
self._device = os.getenv("HOST_STT_DEVICE", "auto").strip() or "auto"
|
||||
self._compute_type = (
|
||||
os.getenv("HOST_STT_COMPUTE_TYPE", "int8").strip() or "int8"
|
||||
)
|
||||
self._language = os.getenv("HOST_STT_LANGUAGE", "en").strip()
|
||||
self._beam_size = max(1, int(os.getenv("HOST_STT_BEAM_SIZE", "2")))
|
||||
self._best_of = max(1, int(os.getenv("HOST_STT_BEST_OF", "2")))
|
||||
self._beam_size = max(1, int(os.getenv("HOST_STT_BEAM_SIZE", "1")))
|
||||
self._best_of = max(1, int(os.getenv("HOST_STT_BEST_OF", "1")))
|
||||
self._vad_filter = os.getenv("HOST_STT_VAD_FILTER", "0").strip() not in {
|
||||
"0",
|
||||
"false",
|
||||
|
|
@ -587,7 +587,7 @@ class SupertonicTextToSpeech:
|
|||
os.getenv("SUPERTONIC_VOICE_STYLE", "F1").strip() or "F1"
|
||||
)
|
||||
self._lang = os.getenv("SUPERTONIC_LANG", "en").strip() or "en"
|
||||
self._total_steps = int(os.getenv("SUPERTONIC_TOTAL_STEPS", "8"))
|
||||
self._total_steps = int(os.getenv("SUPERTONIC_TOTAL_STEPS", "4"))
|
||||
self._speed = float(os.getenv("SUPERTONIC_SPEED", "1.5"))
|
||||
self._intra_op_num_threads = _optional_int_env("SUPERTONIC_INTRA_OP_THREADS")
|
||||
self._inter_op_num_threads = _optional_int_env("SUPERTONIC_INTER_OP_THREADS")
|
||||
|
|
@ -900,7 +900,7 @@ class WebRTCVoiceSession:
|
|||
# How long to wait after the last incoming chunk before flushing the
|
||||
# entire accumulated response to TTS in one go.
|
||||
self._tts_response_end_delay_s = max(
|
||||
0.1, float(os.getenv("HOST_TTS_RESPONSE_END_DELAY_S", "1.5"))
|
||||
0.1, float(os.getenv("HOST_TTS_RESPONSE_END_DELAY_S", "0.5"))
|
||||
)
|
||||
|
||||
self._closed = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue