You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
323 B
13 lines
323 B
import asyncio
|
|
from swarms.models.distilled_whisperx import DistilWhisperModel
|
|
|
|
model_wrapper = DistilWhisperModel()
|
|
|
|
# Download mp3 of voice and place the path here
|
|
transcription = model_wrapper("path/to/audio.mp3")
|
|
|
|
# For async usage
|
|
transcription = asyncio.run(
|
|
model_wrapper.async_transcribe("path/to/audio.mp3")
|
|
)
|