Skip to main content

Voice

The VoicePipe module provides a console-based interface for utilizing the SuperAgentX voice-to-text pipelines. It supports various backend implementations, including OpenAI Whisper and AWS Transcribe, offering flexible and efficient voice-to-text conversion.

Dependency

Implementation

OpenAI Whisper Integration

The OpenAI Whisper integration uses the WhisperPipe class from superagentx.pipeimpl.openaivoicepipe. It processes voice-to-text requests with the following steps:
Set up a OpenAI API key as an environmental variable and run the following code.

Installation:

openaivoicepipe

Result of openaivoicepipe

AWS Transcribe Integration

The AWS Transcribe integration uses the AWSVoicePipe class from superagentx.pipeimpl.awsvoicepipe. It includes region-specific configurations and follows these steps:
Set up a AWS Access key ID as an environmental variable and run the following code.
awsvoicepipe

Result of AWSVoicePipe