gateway icon indicating copy to clipboard operation
gateway copied to clipboard

VeenaMAX TTS Provider Integration

Open saicherry93479 opened this issue 2 months ago • 2 comments
trafficstars

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" }'

image

saicherry93479 avatar Sep 22 '25 11:09 saicherry93479