Skip to content

Add encoding param to TTS Providers #3990

@jcbjoe

Description

@jcbjoe

Problem Statement

All the TTS processors do not have a way to change the encoding. This seems to be due to Pipecat converting everything to PCM. However Im my case Im using ULAW for both STT and TTS to save on overhead of converting and resampling. Most STT processors in Pipecat have an encoding header so it only makes sense to add this to TTS processors. Right now I have copied of each processor and have to manually cherry pick updates when Pipecat updates.

Proposed Solution

Add an encoding parameter to the TTS processors

Alternative Solutions

Making copies of each processor and implementing it myself.

Additional Context

No response

Would you be willing to help implement this feature?

  • Yes, I'd like to contribute
  • No, I'm just suggesting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions