Text to Speech

Generate the Airport TTS (Text-to-Speech) audio file.

This method handles the creation of a TTS audio file for an airport. It requires the ICAO code, ATIS, and the ATIS identifier to generate the MP3 audio file. Once generated, the audio file's details are returned in a JSON response.

post/api/v1/tts

Request

  • Base URL: https://atisgenerator.com
  • URL: https://atisgenerator.com/api/v1/tts
  • Auth: none declared

Request body

icaostring

The ATIS ICAO code.

identstring

The ATIS ident letter.

atisstring

The ATIS message.

Example request

{
  "icao": "KJAX",
  "ident": "A",
  "atis": "Jacksonville International Airport, information Alpha, time 1700 Zulu, wind 180 at 10, visibility 10, sky clear, temperature 27, dew point 23, altimeter 3002, landing and departing runway 8, advise on initial contact you have information Alpha.",
  "options": {
    "engine": "VoiceRSS",
    "api_key": "1234567890",
    "VoiceRSS": {
      "format": "MP3",
      "voice": "John",
      "rate": "16khz_16bit_stereo"
    },
    "ElevenLabs": {
      "voice": "Adam",
      "model_id": "eleven_monolingual_v1",
      "voice_settings": {
        "stability": 0.5,
        "similarity_boost": 0.75,
        "use_speaker_boost": true
      }
    }
  }
}

Response

Successful TTS file generation.

statusstring

The status of the response indicating the success or failure of the operation.

messagestring

A human-readable message providing additional information about the status.

codeinteger

An optional status code for the response. It typically indicates the HTTP status code.

Example response

{
  "status": "success",
  "message": "Successfully generated TTS file.",
  "code": 200,
  "data": {
    "id": "6",
    "name": "KJAX_ATIS_A_261700Z.mp3",
    "url": "/storage/atis/6/KJAX_ATIS_A_261700Z.mp3"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.