Skip to content

FEAT: New Audio Convertors#1375

Open
petebryan wants to merge 8 commits intoAzure:mainfrom
petebryan:pebryan_audio
Open

FEAT: New Audio Convertors#1375
petebryan wants to merge 8 commits intoAzure:mainfrom
petebryan:pebryan_audio

Conversation

@petebryan
Copy link
Contributor

Description

Added new audio convertors to add the following:

  • Change the speed of an audio file without altering pitch AudioSpeedConverter
  • Add whitenoise over an existing audio file AudioWhiteNoiseConverter
  • Add an echo to an existing audio file AudioEchoConverter
  • Adjust volume of an audio file by scaling the amplitude. AudioVolumeConverter

Added new translation convertor to allow for mid sentence language switching in a prompt MultiLanguageTranslationConverter

  • Distinct from RandomTranslationConverter as focused on segment level granularity and deterministic translation.

Updated AzureSpeechTextToAudioConverter to handle a situation where an audio file input is handled and just passed back out. This handles situations when using the convertors with conversation history that may include mixed audio and text Messages that would otherwise throw exceptions.

Sorry I did not raise an issue for this ahead of time, experimentation of ideas turned into code and wanted to contribute. Happy to refactor whoever is deemed best.

Tests and Documentation

  • Added unit tests for all convertors to test functionality and ensure audio transformations do not adversely affect audio files. (58 unit tests)
  • Updated AzureSpeechTextToAudioConverter tests to test for case when audio_file is provided as input after update. (1 unit test)
  • Updated convertor documentation .py files to reflect these updates then ran jupytext --execute --to notebook to generate notebooks.

@petebryan petebryan marked this pull request as draft February 18, 2026 03:53
@petebryan petebryan marked this pull request as ready for review February 18, 2026 17:40
@petebryan petebryan changed the title [DRAFT] FEAT - New Audio Convertors FEAT: New Audio Convertors Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments