import requestsheaders ={'accept':'application/json','x-magicapi-key':'API_KEY','Content-Type':'application/x-www-form-urlencoded',}data ={'text':'Hello, what is your name ?','voice_indentifier':'en-US_Matthew','tts_service':'polly',}response = requests.post('https://api.magicapi.dev/api/v1/capix/tts/tts/v1/', headers=headers, data=data)
import axios from'axios';constresponse=awaitaxios.post('https://api.magicapi.dev/api/v1/capix/tts/tts/v1/',newURLSearchParams({'text':'Hello, what is your name ?','voice_indentifier':'en-US_Matthew','tts_service':'polly' }), { headers: {'accept':'application/json','x-magicapi-key':'API_KEY' } });
fetch('https://api.magicapi.dev/api/v1/capix/tts/tts/v1/', { method:'POST', headers: {'accept':'application/json','x-magicapi-key':'API_KEY' }, body:newURLSearchParams({'text':'Hello, what is your name ?','voice_indentifier':'en-US_Matthew','tts_service':'polly' })});