Python: feat(camb): Add CAMB AI connector for text-to-speech, speech-to-text, and audio services#13575
Open
neilruaro-camb wants to merge 1 commit intomicrosoft:mainfrom
Open
Conversation
…to-text, and audio services
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
CAMB.ai provides multilingual AI-powered audio services. This PR adds a connector that integrates CAMB.ai capabilities into Semantic Kernel, enabling developers to use text-to-speech, speech-to-text, translation, voice cloning, and other audio features through the standard SK service interfaces.
Description
Adds a new
cambconnector undersemantic_kernel/connectors/ai/camb/with the following components:Services:
CambTextToAudio— TTS service supporting multiple output formats (WAV, MP3, FLAC, OGG, PCM, Mu-law) via MARS modelsCambAudioToText— Speech-to-text transcription service with async task pollingPlugin:
CambPlugin— Kernel plugin exposing 6 additional features as kernel functions:translate— Translate text between 140+ languagestranslated_tts— Translate and synthesize speech in one callclone_voice— Create custom voice clones from audio sampleslist_voices— List available voices with metadatatext_to_sound— Generate sound effects/music from text descriptionsseparate_audio— Separate vocals from background tracksConfiguration:
CambSettings— Pydantic-based settings with environment variable support (CAMB_API_KEY)CambTextToAudioExecutionSettings/CambAudioToTextExecutionSettings— Request configurationOther:
camb-sdkadded topyproject.tomlcamb_all_features.py) demonstrating all 8 featuresTest Plan
uv run pre-commit run -a— all hooks pass (ruff, bandit, pyupgrade, etc.)uv run mypy --config-file mypy.ini semantic_kernel/connectors/ai/camb/— no issues in 8 source filesuv run pytest tests/unit/connectors/ai/camb/ -v— 40/40 tests pass