Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download constants.py from ai-coustics/VoiceFocus: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/ai-coustics/VoiceFocus/resolve/7274b791d482afe7ef9ab2020f74ceace38e16c2/constants.py
- Command line
-
hf download hf://spaces/ai-coustics/VoiceFocus@7274b791d482afe7ef9ab2020f74ceace38e16c2/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/ai-coustics/VoiceFocus/resolve/7274b791d482afe7ef9ab2020f74ceace38e16c2/constants.py
840 Bytes
| from typing import Final | |
| from stt_streamers import DeepgramStreamer, SonioxStreamer | |
| CHUNK_SIZE: Final = 1024 | |
| TIMEOUT_FACTOR_MB: Final = 60 | |
| BASE_TIMEOUT_SECONDS: Final = 120 | |
| MODEL_ID: Final = "quail-vf-2.0-l-16khz" | |
| MINUTES_KEEP: Final = 60 | |
| # All app temp files (spectrograms, audio, etc.) go here so we only purge our own files. | |
| APP_TMP_DIR: Final = "/tmp/voicefocus" | |
| DATASET_NAME: Final = "ai-coustics/dawn_chorus_en" | |
| DEFAULT_SPLIT: Final = "eval" | |
| MIX_DIR: Final = "mix" | |
| SPEECH_DIR: Final = "speech" | |
| TRANS_DIR: Final = "transcripts" | |
| DEFAULT_SR: Final = 16000 | |
| STREAM_EVERY: Final = 0.2 | |
| WARMUP_SECONDS: Final = 2 # seconds before "recording ready" light turns on | |
| TARGET_LOUDNESS: Final = -17.0 | |
| TARGET_TP: Final = -1.5 | |
| STREAMER_CLASSES: Final = { | |
| "Deepgram Nova-3 RT": DeepgramStreamer, | |
| "Soniox STT-RT v3": SonioxStreamer, | |
| } | |