AudioAgent: Speech-to-text and text-to-speech

Transcribe recordings and synthesize natural speech

AudioAgent handles both directions of audio AI: turning voice notes or meeting recordings into transcripts (transcribe) and turning agent briefings into spoken audio files (speech).

Example

from praisonai import AudioAgent

audio = AudioAgent(llm='openai/tts-1')
audio.speech('Morning briefing: all 12 services are healthy.', output='briefing.mp3')
transcript = audio.transcribe('standup_note.mp3')
print(transcript)

Example explained

  • audio.speech(text, output=…) — Converts an agent's text summary into a playable MP3 narration.
  • audio.transcribe(path) — Transcribes spoken voice memos into text for downstream summarization.

Turn meeting transcripts into action items automatically

Chain AudioAgent transcription directly into an Agent with a Pydantic ActionItem list so every voice note becomes tracked tasks.

Example

from praisonai import Agent

transcript = 'Alex will update the billing test by Friday, and Sam will rotate the staging key today.'
extractor = Agent(instructions='List owner and deadline bullets from the meeting transcript.')
print(extractor.start(transcript))

Try it Yourself

Example explained

  • MeetingActions — Processes transcribed speech into crisp owner/deadline bullets.

Common pitfall: sending raw markdown symbols to TTS

Spoken audio sounds robotic if it reads 'asterisk asterisk hash hash'. Strip markdown formatting before calling audio.speech().

Reference: documentation