API Documentation
Explore our API endpoints and learn how to use them.
May Endpoints
Transcribe Audio
POST /may/transcribe - Transcribes an audio file.
Request Headers:
- Authorization: API Key (required)
- Language: Language (optional)
Request Body:
{ "file": "path/to/audio/file.wav" }
Responses:
- 200: Successful response
- 401: Authorization Error
- 422: Validation error
Example (cURL):
curl -X POST https://api.technology-labs.com/may/transcribe \
-H "Authorization: Bearer your_api_key" \
-F "Language: en" \
-F "file=@/path/to/audio/file.wav"
Convert Text to Speech
POST /may/text-to-speech - Converts text to speech.
Request Headers:
- Authorization: API Key (required)
- Text: The text to be spoken (required)
- Language: Language (required)
Example (cURL):
curl -X POST https://api.technology-labs.com/may/text-to-speech \
-H "Authorization: Bearer your_api_key" \
-F 'text=Hello, World!' \
-F 'language=en'
--output TL-TTS.wav
Responses:
- 200: Successful response
- 401: Authorization Error
- 422: Validation error