email

Transform email addresses into spoken form for TTS.

async pipecat.utils.text.transforms.email.email_to_speech(text: str, aggregation_type: str | AggregationType) str[source]

Transform email addresses into their spoken form.

Parameters:
  • text – Input text possibly containing email addresses.

  • aggregation_type – Aggregation type of the text frame (unused).

Returns:

Text with email addresses replaced by spoken equivalents.

Example:

result = await email_to_speech("Contact user@example.com today", "*")
# "Contact user at example dot com today"