gateway
gateway copied to clipboard
VeenaMAX TTS Provider Integration
Description
This PR adds VeenaMAX TTS (Text-to-Speech) provider integration
Type of Change
Changes Made Core Integration Files src/providers/veenamax/api.ts - API configuration with base URL, headers, and endpoint mapping src/providers/veenamax/createSpeech.ts - TTS implementation with parameter mapping and response transformation src/providers/veenamax/index.ts - Main provider configuration export src/globals.ts - Added VEENA_MAX constant src/providers/index.ts - Registered VeenaMAX provider
How Has This Been Tested?
src/providers/veenamax/api.test.ts - Tests API configuration, headers, and endpoint mapping src/providers/veenamax/createSpeech.test.ts - Tests TTS functionality, error handling, and voice mappings
Basic TTS request
curl --location 'http://localhost:8787/v1/audio/speech'
--header 'Content-Type: application/json'
--header 'x-portkey-provider: veenamax'
--header 'Authorization: Bearer your_veenamax_api_key'
--data '{
"input": "Hello! This is a REST API test of VeenaMAX TTS through Portkey Gateway.",
"voice": "charu_soft",
"response_format": "wav"
}'