Vulavula Logo
Speech To Text (STT)

Using SDK

Transcribe V1 has been deprecated!

The Transcribe V1 endpoint has been deprecated and will be removed in a future release. This documentation has been updated to reference the newer v2alpha API, which includes improvements and ongoing support. If you're still using V1, we recommend migrating to v2alpha as soon as possible to ensure continued functionality. API Reference

Transcribe an audio file by specifying the file path, with an optional webhook URL for asynchronous result delivery. The maximum audio length supported is 30 minutes.

This method simplifies the process by combining both the upload and transcription steps into a single, easy-to-use SDK method.

TerminalCode
pdm add vulavula
Code
from vulavula import VulavulaClient client = VulavulaClient("<INSERT_TOKEN>") upload_id, transcription_result = client.transcribe( "path/to/your/audio/file.wav", webhook="<INSERT_URL>" ) print("Transcription Submit Success:", transcription_result) #A success message, data is sent to webhook

Get Transcribed Text

This method allows one to ping the server to get the transcribed text. This is helpful for those who do not want to use a webhook.

TerminalCode
pdm add vulavula
Code
import time while client.get_transcribed_text(upload_id)['message'] == "Item has not been processed.": time.sleep(5) print("Waiting for transcribe to complete...") client.get_transcribed_text(upload_id)
Last modified on