post
https://api.emaktalk.com/api/v1/recordings
Uploads audio and stores it as a recording on your account, converting it to WAV. For an ordinary upload the audio is also transcribed automatically: the transcript is stored in tts_text and becomes the description when you do not supply one. Sending tts_ssml instead marks the recording as text-to-speech and skips that transcription.
The file name decides whether this creates or replaces. The audio is stored under a file name made from the upload's name (file.name, or name when file is a plain string), cleaned up to a safe .wav name.
- If the upload's name is already that clean
.wavname and your account has a recording stored under it, this replaces that recording's audio and keeps its id, so everything that uses it plays the new audio (200). - Otherwise it creates a new recording (201). If the clean name is taken, the new recording gets the next free numbered name, such as
greeting_2.wav: an upload never overwrites a different recording. - Send
reject_duplicate: trueto be refused (409) instead when your account already has a recording with that file name, or one whosenameis the same ignoring case.
To replace a known recording's audio, use Update a recording.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
401Missing or invalid API key.
