This class provides functionality for uploading audio files and transcribing them into text using a speech-to-text service provider.
An enumeration of available speech-to-text service providers.
Returns a list of available service provider choices.
Uploads an audio file to the speech-to-text service provider.
file_location
(str
): The location of the audio file to upload.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the speech-to-text service provider.
SpeechToText.transcribe(upload_url: str, service_provider: ServiceProvider, header=None) -> Dict[str, Any]
Transcribes an uploaded audio file into text using a specified service provider.
upload_url
(str
): The URL of the uploaded audio file.service_provider
(SpeechToText.ServiceProvider
): The service provider to use for transcription.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the speech-to-text service provider.
Retrieves the status of a transcription job using a specified service provider.
job_id
(str
): The ID of the transcription job.service_provider
(SpeechToText.ServiceProvider
): The service provider used for the transcription job.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the speech-to-text service provider.
This class provides functionality for summarizing text using a summarization service provider.
An enumeration of available summarization service providers.
Returns a list of available service provider choices.
Summarization.summarize(text: str, service_provider: ServiceProvider, header=None) -> Dict[str, Any]
Summarizes a block of text using a specified service provider.
text
(str
): The text to synthesize.service_provider
(TextToSpeech.ServiceProvider
): The service provider to use for text-to-speech conversion.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the summarization service provider, containing a link to the uploaded file.
Retrieves the status of a transcription job using a specified service provider.
job_id
(str
): The ID of the transcription job.service_provider
(Summarization.ServiceProvider
): The service provider used for the transcription job.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the speech-to-text service provider.
text
(str
): The text to summarize.service_provider
(Summarization.ServiceProvider
): The service provider to use for summarization.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the summarization service provider.
This class provides functionality for converting text to audio using a text-to-speech service provider.
An enumeration of available text-to-speech service providers.
Returns a list of available service provider choices.
Synthesizes text into audio using a specified service provider.
text
(str
): The text to synthesize.service_provider
(TextToSpeech.ServiceProvider
): The service provider to use for text-to-speech conversion.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the summarization service provider, containing a link to the uploaded file.
Retrieves the status of a transcription job using a specified service provider.
job_id
(str
): The ID of the transcription job.service_provider
(TextToSpeech.ServiceProvider
): The service provider used for the transcription job.header
(Any
): Optional header information.
Dict[str, Any]
: The response from the speech-to-text service provider.