RevaiClient
Classes
TranscriptionGetResponse
dataclass
TranscriptionGetResponse(id: Optional[str] = None, status: Optional[str] = None, language: Optional[str] = None, created_on: Optional[str] = None, transcriber: Optional[str] = None)
Response for Get transcription job
Attributes
TranscriptionInput
dataclass
TranscriptionInput(source_config: Optional[Dict[str, Any]] = None, metadata: Optional[str] = None, notification_config: Optional[Dict[str, Any]] = None, delete_after_seconds: Optional[int] = None, transcriber: Optional[str] = None, verbatim: Optional[bool] = None, rush: Optional[bool] = None, test_mode: Optional[bool] = None, segments_to_transcribe: Optional[List[Dict[str, Any]]] = None, speakers_names: Optional[List[Dict[str, Any]]] = None, skip_diarization: Optional[bool] = None, skip_postprocessing: Optional[bool] = None, skip_punctuation: Optional[bool] = None, remove_disfluencies: Optional[bool] = None, remove_atmospherics: Optional[bool] = None, filter_profanity: Optional[bool] = None, speaker_channels_count: Optional[int] = None, speakers_count: Optional[int] = None, custom_vocabulary_id: Optional[str] = None, custom_vocabularies: Optional[List[Dict[str, Any]]] = None, language: Optional[str] = None)
Submit transcription job
Attributes
delete_after_seconds
class-attribute
instance-attribute
The delete after seconds.
skip_diarization
class-attribute
instance-attribute
Whether to skip diarization.
skip_postprocessing
class-attribute
instance-attribute
Whether to skip postprocessing.
skip_punctuation
class-attribute
instance-attribute
Whether to skip punctuations.
remove_disfluencies
class-attribute
instance-attribute
Whether to remove disfluencies.
remove_atmospherics
class-attribute
instance-attribute
Whether to remove atmospherics.
filter_profanity
class-attribute
instance-attribute
Whether to filter profanity.
speaker_channels_count
class-attribute
instance-attribute
The speaker channels count.
speakers_count
class-attribute
instance-attribute
The speakers count.
custom_vocabulary_id
class-attribute
instance-attribute
The custom vocabulary identifier.
TranscriptionPostResponse
dataclass
TranscriptionPostResponse(id: Optional[str] = None, status: Optional[str] = None, language: Optional[str] = None, created_on: Optional[str] = None, transcriber: Optional[str] = None)
Response for Submit transcription job
Attributes
TranscriptGetResponse
dataclass
Response for Get transcript
AccountGetResponse
dataclass
AccountGetResponse(email: Optional[str] = None, free_balance: Optional[float] = None, purchased_balance: Optional[float] = None, total_balance: Optional[int] = None, invoiced_balance: Optional[float] = None, balance_seconds: Optional[int] = None, hipaa_enabled: Optional[bool] = None)
Response for Get account
Attributes
free_balance
class-attribute
instance-attribute
The free balance.
purchased_balance
class-attribute
instance-attribute
The purchased balance.
total_balance
class-attribute
instance-attribute
The total balance.
invoiced_balance
class-attribute
instance-attribute
The invoiced balance.
balance_seconds
class-attribute
instance-attribute
The balance seconds.
VocabularyInput
dataclass
VocabularyPostResponse
dataclass
VocabularyPostResponse(id: Optional[str] = None, status: Optional[str] = None, created_on: Optional[str] = None, callback_url: Optional[str] = None)
Response for Submit custom vocabulary
Attributes
VocabularyGetResponse
dataclass
VocabularyGetResponse(id: Optional[str] = None, status: Optional[str] = None, created_on: Optional[str] = None, callback_url: Optional[str] = None)
Response for Get vocabulary
Attributes
ExtractionInput
dataclass
ExtractionInput(language: Optional[str] = None, metadata: Optional[str] = None, notification_config: Optional[Dict[str, Any]] = None, delete_after_seconds: Optional[int] = None, json: Optional[Dict[str, Any]] = None)
Submit topic extraction job
Attributes
ExtractionPostResponse
dataclass
ExtractionPostResponse(id: Optional[str] = None, status: Optional[str] = None, language: Optional[str] = None, created_on: Optional[str] = None, type_: Optional[str] = None)
Response for Submit topic extraction job
Attributes
ExtractionGetResponse
dataclass
ExtractionGetResponse(id: Optional[str] = None, status: Optional[str] = None, language: Optional[str] = None, created_on: Optional[str] = None, type_: Optional[str] = None)
Response for Get topic extraction job
Attributes
ExtractionResultGetResponse
dataclass
Response for Get topic extraction result
AnalysisInput
dataclass
AnalysisInput(language: Optional[str] = None, metadata: Optional[str] = None, notification_config: Optional[Dict[str, Any]] = None, delete_after_seconds: Optional[int] = None, json: Optional[Dict[str, Any]] = None)
Submit sentiment analysis job
Attributes
AnalysisPostResponse
dataclass
AnalysisPostResponse(id: Optional[str] = None, status: Optional[str] = None, language: Optional[str] = None, created_on: Optional[str] = None, callback_url: Optional[str] = None, type_: Optional[str] = None)
Response for Submit sentiment analysis job
Attributes
callback_url
class-attribute
instance-attribute
The callback URL address.
AnalysisGetResponse
dataclass
AnalysisGetResponse(id: Optional[str] = None, status: Optional[str] = None, language: Optional[str] = None, created_on: Optional[str] = None, callback_url: Optional[str] = None, type_: Optional[str] = None)
Response for Get sentiment analysis job
Attributes
callback_url
class-attribute
instance-attribute
The callback URL address.
AnalysisResultGetResponse
dataclass
Response for Get sentiment analysis result
IdentificationInput
dataclass
IdentificationPostResponse
dataclass
IdentificationPostResponse(id: Optional[str] = None, status: Optional[str] = None, created_on: Optional[str] = None, type_: Optional[str] = None)
Response for Submit language identification job
Attributes
IdentificationGetResponse
dataclass
IdentificationGetResponse(id: Optional[str] = None, status: Optional[str] = None, created_on: Optional[str] = None, type_: Optional[str] = None)
Response for Get language identification job
Attributes
IdentificationResultGetResponse
dataclass
AlignmentInput
dataclass
AlignmentInput(metadata: Optional[str] = None, notification_config: Optional[Dict[str, Any]] = None, delete_after_seconds: Optional[int] = None, source_config: Optional[Dict[str, Any]] = None, transcript_text: Optional[str] = None, language: Optional[str] = None)
Submit forced alignment job
Attributes
delete_after_seconds
class-attribute
instance-attribute
The delete after seconds.
transcript_text
class-attribute
instance-attribute
The transcript text.
AlignmentPostResponse
dataclass
AlignmentPostResponse(id: Optional[str] = None, status: Optional[str] = None, created_on: Optional[str] = None, type_: Optional[str] = None)
Response for Submit forced alignment job
Attributes
AlignmentGetResponse
dataclass
AlignmentGetResponse(id: Optional[str] = None, status: Optional[str] = None, created_on: Optional[str] = None, type_: Optional[str] = None)
Response for Get forced alignment job
Attributes
AlignmentTranscriptGetResponse
dataclass
Response for Get forced alignment transcript
RevaiClient
RevaiClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for revai connector.
Initialize a RevaiClient.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection_runtime_url
|
str
|
The connection runtime URL from Azure Portal. |
required |
token_provider
|
Optional[TokenProvider]
|
Optional token provider. Defaults to ManagedIdentityTokenProvider. |
None
|
options
|
Optional[ConnectorClientOptions]
|
Optional connector client options. |
None
|
Methods:
transcription_get_async
async
Get transcription job
Returns information about a transcription job.
transcription_delete_async
async
Delete transcription job
Deletes a transcription job. All data related to the job, such as input media and transcript, will be permanently deleted. A job can only be deleted once it's completed (either with success or failure).
transcriptions_get_async
async
transcriptions_get_async(limit: Optional[int] = None, starting_after: Optional[str] = None) -> dict[str, Any] | None
Get transcription job list
Retrieve a list of transcription jobs submitted within the last 30 days.
transcription_async
async
Submit transcription job
Starts an asynchronous job to transcribe speech-to-text for a media file.
transcript_get_async
async
Get transcript
Returns the transcript for a completed transcription job.
captions_get_async
async
Get captions
Returns the caption output for a transcription job. We currently support the SubRip (SRT) format.
account_get_async
async
Get account
Get the developer's account information.
vocabularies_get_async
async
Get list of vocabularies
Retrieves a list of most recent custom vocabularies' processing information.
vocabulary_async
async
Submit custom vocabulary
Submits a Custom Vocabulary for asynchronous processing.
vocabulary_get_async
async
Get vocabulary
Retrieve a custom vocabulary processing information.
vocabulary_delete_async
async
Delete vocabulary
Deletes a custom vocabulary. All data related to the custom vocabulary, such as webhooks and metadata, will be permanently deleted.
extractions_get_async
async
extractions_get_async(limit: Optional[int] = None, starting_after: Optional[str] = None) -> dict[str, Any] | None
Get topic extraction jobs
Retrieves a list of topic extraction jobs submitted within the last 30 days in reverse chronological order.
extraction_async
async
Submit topic extraction job
Starts an asynchronous job to extract topics from a transcript.
extraction_get_async
async
Get topic extraction job
Returns information about a topic extraction job.
extraction_delete_async
async
Delete topic extraction jo
Deletes a topic extraction job. All data related to the job will be permanently deleted.
extraction_result_get_async
async
Get topic extraction result
Returns the results for a completed topic extraction job.
analysises_get_async
async
Get sentiment analysis jobs
Gets a list of sentiment analysis jobs submitted within the last 30 days in reverse chronological order.
analysis_async
async
Submit sentiment analysis job
Starts an asynchronous job to analyze sentiments in a transcript.
analysis_get_async
async
Get sentiment analysis job
Returns information about a sentiment analysis job.
analysis_delete_async
async
Delete sentiment analysis job
Deletes a sentiment analysis job. All data related to the job will be permanently deleted.
analysis_result_get_async
async
Get sentiment analysis result
Returns the results for a completed sentiment analysis job.
identifications_get_async
async
identifications_get_async(limit: Optional[int] = None, starting_after: Optional[str] = None) -> dict[str, Any] | None
Get language identification jobs
Retrieves a list of language identification jobs submitted within the last 30 days in reverse chronological order.
identification_async
async
Submit language identification job
Starts an asynchronous job to identify the most probable language in the audio.
identification_get_async
async
Get language identification job
Returns information about a language identification job.
identification_delete_async
async
Delete language identification job
Deletes a language identification job. All data related to the job will be permanently deleted.
identification_result_get_async
async
Get language identification result
Returns the results for a completed language identification job.
alignments_get_async
async
alignments_get_async(limit: Optional[int] = None, starting_after: Optional[str] = None) -> dict[str, Any] | None
Get forced alignment jobs
Retrieve a list of alignment jobs submitted within the last 30 days in reverse chronological order.
alignment_async
async
Submit forced alignment job
Starts an asynchronous job to obtain precise word timings for an audio file and text transcript.
alignment_get_async
async
Get forced alignment job
Returns information about a forced alignment job.
alignment_delete_async
async
Delete forced alignment job
Deletes a forced alignment job. All data related to the job will be permanently deleted.