Add Camb AI as a transcription and translation provider#26
Open
neilruaro-camb wants to merge 1 commit intobuxuku:mainfrom
Open
Add Camb AI as a transcription and translation provider#26neilruaro-camb wants to merge 1 commit intobuxuku:mainfrom
neilruaro-camb wants to merge 1 commit intobuxuku:mainfrom
Conversation
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.
What this adds
A new Camb AI provider for transcription and translation, alongside the existing whisper.cpp and Baidu / Volcano / DeepLX / Ollama options. It is fully optional and off by default; users opt in by switching the providers in
config.jsafter settingCAMB_API_KEY.Files added or updated:
providers/camb.js(new) — transcription + translation implementationservice/camb.js(new) — thin shim matching the existingservice/*.jssignature used bytranslate.jsconfig.js— newsupportedTranscriptionServicemap,cambentry insupportedServicetranslate.js—cambcase in the provider switchindex.js— skips the whisper.cpp install when the Camb transcription provider is selected.env.exampleand.env.local— addCAMB_API_KEYplaceholderpackage.json/package-lock.json— add@camb-ai/sdkdependencyREADME.md— short Camb AI sectionWhy Camb AI
Camb AI is the localization engine of choice for brands such as the Premier League, the NBA, NASCAR, and the Australian Open. We power dubbing and voice cloning across 140+ languages for their live and on-demand content. We think VideoSubtitleGenerator users would benefit from the same quality, so we would love to see Camb offered as an option in your project.
How it works
CAMB_API_KEYenvironment variable.@camb-ai/sdkNode client.createTranscription/createTranslation, poll status, fetch result.enorzhkeep working from the existing config.Verification
From a clone with
CAMB_API_KEYset:On the existing
examples/demo.mp4, the run producesdemo.en.srtanddemo.zh.srtwith 6 properly timestamped segments and fluent Chinese translations.Notes
Happy to iterate on naming, UX, or scope based on your preferences. Thank you for considering this.