Your API key is available on your dashboard. Click your profile to see and copy it.
Include your API key in the X-API-Key header with every request:
Input: WAV (recommended), MP3, WebM
Output: MP3 (audio/mpeg)
Note: The Unity SDK handles audio recording and format conversion automatically.
| Environment | URL |
|---|---|
| Development | http://192.168.1.167:8000 |
| Production | https://atscloudplatform.com |
All endpoints require the X-API-Key header for authentication.
POST /v1/stt
Convert audio to text (Speech-to-Text)
Body: Multipart form with audio file (WAV, MP3, WebM)
Response: {"text": "transcribed text", "confidence": 0.95}
POST /v1/tts
Convert text to speech (Text-to-Speech)
Body: {"text": "Hello world", "voice": "en-US-GuyNeural"}
Response: MP3 audio file
Available Voices:
en-US-GuyNeural (US Male) - Defaulten-US-JennyNeural (US Female)en-US-AriaNeural (US Female)en-US-DavisNeural (US Male)en-GB-RyanNeural (UK Male)en-GB-SoniaNeural (UK Female)en-IN-NeerjaNeural (Indian Female)en-IN-PrabhatNeural (Indian Male)POST /v1/speech-to-speech
Complete voice conversation (Audio Input -> A1 Response Audio)
Body: Multipart form with audio file, voice, and
service_type
Parameters:
service_type = "chat" | "mock-interview" | "english-tutor"
topic = Interview topic (optional, for mock-interview)
session_id = Session ID (optional)
Response: MP3 audio file with transcription text in headers
POST /v1/chat/simple
Chat with A1 AI
Body: {"message": "your question"}
Response: {"response": "AI answer"}
POST /v1/mock-interview/start
Start a mock interview session
Body: {"topic": "AR/VR Development"}
Response: {"session_id": "...", "interviewer_greeting": "..."}
POST /v1/mock-interview/feedback
Get feedback for a mock interview session
Body: {"session_id": "..."}
Response: {"feedback": "...", "questions_asked": 5}
POST /v1/speech-to-speech/feedback
Get feedback for an S2S mock interview session
Body (Form): session_id
Response: {"feedback": "...", "questions_asked": 5}
POST /v1/english-tutor/session/start
Start an English tutoring session
POST /v1/voice-assistant/query
Ask the voice assistant a question
GET /health
Check API health status (no auth required)
GET /v1/tts/voices
List available TTS voices (no auth required)
Add ATSCloudAPI.cs to your Unity project's Scripts folder.
ATSCloudAPI script to itbaseUrl to production when deployingNeed help? Contact your institute administrator or email support@atscloudplatform.com