feat(OpenAI Node): Add gpt-4o-mini-tts model with new voices and parameters - #250
Open
everettbu wants to merge 5 commits into
Open
feat(OpenAI Node): Add gpt-4o-mini-tts model with new voices and parameters#250everettbu wants to merge 5 commits into
everettbu wants to merge 5 commits into
Conversation
- Add gpt-4o-mini-tts model support - Add new voices: ash, ballad, coral, sage, verse - Add new audio formats: wav, pcm - Add instructions parameter (gpt-4o-mini-tts only) - Add stream_format parameter - Implement conditional voice display based on model selection - Add comprehensive test coverage (37 test cases) The ballad and verse voices are exclusively available for gpt-4o-mini-tts as they are not supported by tts-1 and tts-1-hd models.
…ions - Update test case to reflect changes in model name for audio generation - Modify stream_format options to conditionally display based on selected model - Ensure comprehensive test coverage for audio generation functionality
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.
Mirror of n8n-io/n8n#21944
Original author: mo-sil
Summary
Adds complete support for OpenAI's latest Text-to-Speech features, bringing the node to 100% API parity with the OpenAI Audio API.
Changes
New Model
gpt-4o-mini-tts- OpenAI's next-generation audio model with improved steerabilityNew Voices (5)
ash- Available on all modelscoral- Available on all modelssage- Available on all modelsballad- gpt-4o-mini-tts exclusiveverse- gpt-4o-mini-tts exclusiveNew Audio Formats (2)
wav- Waveform Audio File Formatpcm- Raw 16-bit low-endian PCM audioNew Parameters
instructions- Control voice characteristics (gpt-4o-mini-tts only)stream_format- Choose betweenaudioorssestreamingImplementation Details
balladandverseonly appear whengpt-4o-mini-ttsis selectedTesting
Validation
Breaking Changes
None. This is a backward-compatible feature addition.
Related
Checklist:
ts-ignoreusedNote
Adds
gpt-4o-mini-ttssupport with expanded voice options, new audio formats,instructions/stream_formatparams, and comprehensive tests for audio generation.packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.ts):gpt-4o-mini-tts.commonVoicesand add model-specificballad/verseforgpt-4o-mini-tts(alphabetically sorted).wavandpcmtoresponse_formatoptions.instructionsandstream_format(exposed only forgpt-4o-mini-tts) and include in request body when provided.POST /audio/speech; supports custom binary output field.packages/@n8n/nodes-langchain/nodes/vendors/OpenAi/test/v2/actions/audio/generate.operation.test.ts):instructions,stream_format, and custom binary field.Written by Cursor Bugbot for commit 94f9c34. This will update automatically on new commits. Configure here.