Jayashree Sridhar
commited on
Commit
·
a69210a
1
Parent(s):
7a4afbb
modified voice_tool
Browse files
agents/tools/voice_tools.py
CHANGED
|
@@ -6,6 +6,7 @@ from transformers import pipeline, AutoProcessor, AutoModelForSpeechSeq2Seq
|
|
| 6 |
import os
|
| 7 |
import tempfile
|
| 8 |
import soundfile as sf
|
|
|
|
| 9 |
class MultilingualVoiceProcessor:
|
| 10 |
def __init__(self, model_name="openai/whisper-base", device=None):
|
| 11 |
cache_dir = os.getenv("TRANSFORMERS_CACHE", None)
|
|
|
|
| 6 |
import os
|
| 7 |
import tempfile
|
| 8 |
import soundfile as sf
|
| 9 |
+
import torch
|
| 10 |
class MultilingualVoiceProcessor:
|
| 11 |
def __init__(self, model_name="openai/whisper-base", device=None):
|
| 12 |
cache_dir = os.getenv("TRANSFORMERS_CACHE", None)
|