> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Detect the Telnyx TTS watermark in an audio file

> Upload an audio file and check whether it contains the watermark that Telnyx text-to-speech embeds in synthesized speech. The request is synchronous: the response carries the result. Every channel is read on its own, so in a call recorded with one channel per leg, the result shows which leg carries Telnyx TTS audio.

Supported formats: WAV (PCM, µ-law, A-law, float), MP3, FLAC, OGG (Vorbis or Opus) and AIFF, with up to 8 channels. Audio from 8 kHz to 48 kHz is read at its own rate; other rates are resampled to 24 kHz first. The file can be up to 100 MB and 60 minutes per channel. AAC/M4A and video containers are not supported; convert them first.

The audio is held in memory for the read only and is not stored. The response never contains the watermark payload or the organization the audio was synthesized for.

For audio that is still coming in, use the WebSocket endpoint `wss://api.telnyx.com/v2/audio_watermark_detections/stream`.



## OpenAPI

````yaml /openapi/source/external/audio-watermark-detection/audio-watermark-detection.json post /audio_watermark_detections
openapi: 3.0.0
info:
  version: 1.0.0
  title: Audio Watermark Detection API
  description: >-
    Check whether audio was generated by Telnyx text-to-speech. Supported Telnyx
    text-to-speech models embed an inaudible watermark in the audio they
    synthesize; this API reads the audio and answers whether that watermark is
    present. It never returns who the audio was synthesized for.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
    description: Version 2.0.0 of the Telnyx API
security:
  - bearerAuth: []
tags:
  - name: Audio Watermark Detection
    description: Detect the Telnyx text-to-speech watermark in audio.
paths:
  /audio_watermark_detections:
    post:
      tags:
        - Audio Watermark Detection
      summary: Detect the Telnyx TTS watermark in an audio file
      description: >-
        Upload an audio file and check whether it contains the watermark that
        Telnyx text-to-speech embeds in synthesized speech. The request is
        synchronous: the response carries the result. Every channel is read on
        its own, so in a call recorded with one channel per leg, the result
        shows which leg carries Telnyx TTS audio.


        Supported formats: WAV (PCM, µ-law, A-law, float), MP3, FLAC, OGG
        (Vorbis or Opus) and AIFF, with up to 8 channels. Audio from 8 kHz to 48
        kHz is read at its own rate; other rates are resampled to 24 kHz first.
        The file can be up to 100 MB and 60 minutes per channel. AAC/M4A and
        video containers are not supported; convert them first.


        The audio is held in memory for the read only and is not stored. The
        response never contains the watermark payload or the organization the
        audio was synthesized for.


        For audio that is still coming in, use the WebSocket endpoint
        `wss://api.telnyx.com/v2/audio_watermark_detections/stream`.
      operationId: createAudioWatermarkDetection
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AudioWatermarkDetectionRequest'
            example:
              file: call-recording.wav
            encoding:
              file:
                contentType: audio/*, application/octet-stream
      responses:
        '200':
          description: The detection result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AudioWatermarkDetectionResponse'
              examples:
                detected:
                  summary: >-
                    Watermark detected on the second channel of a two-channel
                    call recording
                  value:
                    data:
                      record_type: audio_watermark_detection
                      id: af6a3614-6a1c-4b0e-9d6f-3e2b7c1d5a90
                      watermark_detected: true
                      confidence: high
                      channels:
                        - channel: 0
                          watermark_detected: false
                        - channel: 1
                          watermark_detected: true
                      audio:
                        duration_millis: 24060
                        sample_rate: 16000
                        format: wav
                        channels: 2
                      created_at: '2026-12-04T14:25:36.412Z'
                not_detected:
                  summary: No watermark in a mono file
                  value:
                    data:
                      record_type: audio_watermark_detection
                      id: 5b0e3f2c-8d47-4c1a-a6b9-0f1e2d3c4b5a
                      watermark_detected: false
                      confidence: high
                      channels:
                        - channel: 0
                          watermark_detected: false
                      audio:
                        duration_millis: 24060
                        sample_rate: 16000
                        format: wav
                        channels: 1
                      created_at: '2026-12-04T14:24:10.087Z'
        '400':
          description: The body is not a readable `multipart/form-data` request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '10015'
                    title: Bad Request
                    detail: >-
                      The body must be multipart/form-data with the audio in
                      `file`
        '401':
          description: The request did not carry a valid Telnyx API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '10009'
                    title: Authentication failed
                    detail: >-
                      The required authentication headers were either invalid or
                      not included in the request.
        '403':
          description: >-
            The account level does not permit watermark detection. Pretrial and
            everroam accounts cannot use this API.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '10038'
                    title: Feature not permitted
                    detail: >-
                      This feature is not permitted at this account level. Refer
                      to https://telnyx.com/upgrade.
        '413':
          description: >-
            The file is larger than 100 MB (`37001`), or a channel is longer
            than 60 minutes (`37002`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              examples:
                too_large:
                  summary: File larger than 100 MB
                  value:
                    errors:
                      - code: '37001'
                        title: Audio file too large
                        detail: At most 100000000 bytes
                        source:
                          pointer: /file
                too_long:
                  summary: Audio longer than 60 minutes per channel
                  value:
                    errors:
                      - code: '37002'
                        title: Audio too long
                        detail: 3720 s of audio; at most 3600 s
                        source:
                          pointer: /file
        '415':
          description: >-
            The file is not in a supported audio format, or it has more than 8
            channels.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '37003'
                    title: Unsupported audio format
                    detail: >-
                      The file is not audio this API reads: WAV, MP3, FLAC, OGG
                      (Vorbis or Opus) or AIFF, up to 8 channels
                    source:
                      pointer: /file
        '422':
          description: >-
            The `file` part is missing (`10004`), the file is empty or has no
            audio (`37004`), or the organization's data locality is not served
            by this endpoint (`37005`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              examples:
                missing_file:
                  summary: No file part
                  value:
                    errors:
                      - code: '10004'
                        title: Missing required parameter
                        detail: The audio file is required in the `file` part
                        source:
                          pointer: /file
                invalid_audio:
                  summary: Empty file
                  value:
                    errors:
                      - code: '37004'
                        title: Invalid audio
                        detail: The file is empty
                        source:
                          pointer: /file
                data_locality_mismatch:
                  summary: Organization pinned to another data locality
                  value:
                    errors:
                      - code: '37005'
                        title: Data locality mismatch
                        detail: >-
                          The organization's data locality is EU; this site
                          serves US
        '429':
          description: Too many requests. Retry after a short wait.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '10011'
                    title: Too many requests
                    detail: You have exceeded the maximum number of allowed requests.
        '500':
          description: Detection failed unexpectedly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '10007'
                    title: Unexpected error
                    detail: Detection failed
        '503':
          description: >-
            Detection is busy or restarting. Retry after the number of seconds
            in the `Retry-After` header.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
                example: 5
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '37006'
                    title: Detection temporarily unavailable
                    detail: Watermark detection is busy or restarting; retry later
components:
  schemas:
    AudioWatermarkDetectionRequest:
      type: object
      required:
        - file
      properties:
        file:
          type: string
          format: binary
          description: >-
            The audio file: WAV (PCM, µ-law, A-law, float), MP3, FLAC, OGG
            (Vorbis or Opus) or AIFF, up to 8 channels, 100 MB and 60 minutes
            per channel. Send each call leg on its own channel when you have
            them: a mono mix of both parties reads less reliably.
    AudioWatermarkDetectionResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: '#/components/schemas/AudioWatermarkDetection'
    Errors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
    AudioWatermarkDetection:
      type: object
      description: The result of one watermark detection.
      required:
        - record_type
        - id
        - watermark_detected
        - confidence
        - channels
        - audio
        - created_at
      properties:
        record_type:
          type: string
          enum:
            - audio_watermark_detection
          description: Identifies the type of the resource.
          example: audio_watermark_detection
        id:
          type: string
          format: uuid
          description: >-
            Unique identifier of this detection. Detections are not stored, so
            it cannot be retrieved later; quote it when you contact support.
          example: af6a3614-6a1c-4b0e-9d6f-3e2b7c1d5a90
        watermark_detected:
          type: boolean
          description: >-
            `true` when the Telnyx TTS watermark was read on at least one
            channel. A `true` result is very unlikely to be wrong: the watermark
            carries a checksum that must match. `false` means no watermark was
            read; it does not prove the audio is not synthetic.
          example: true
        confidence:
          type: string
          enum:
            - high
            - medium
            - low
          description: >-
            How much to rely on `watermark_detected`. When a watermark was
            detected, the confidence of the best channel; otherwise the
            confidence of the least certain channel.


            - `high`: the watermark read directly; or no watermark and no sign
            of one in at least 20 seconds of audio, or in a channel of digital
            silence.

            - `medium`: the watermark read only after a wider search, for
            example after skipping unmarked stretches; or no watermark and no
            sign of one in less than 20 seconds of audio.

            - `low`: no watermark could be read, but the audio shows signs of
            one (for example, marked audio too damaged by compression to read);
            or less than 2 seconds of audio.
          example: high
        channels:
          type: array
          description: The result for each channel of the audio, in channel order.
          items:
            $ref: '#/components/schemas/AudioWatermarkDetectionChannel'
        audio:
          $ref: '#/components/schemas/AudioWatermarkDetectionAudio'
        created_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 timestamp of the detection, in UTC with millisecond
            precision.
          example: '2026-12-04T14:25:36.412Z'
    Error:
      type: object
      required:
        - code
        - title
      properties:
        code:
          type: string
          description: Telnyx error code.
          example: '37003'
        title:
          type: string
          description: Short, stable description of the error.
          example: Unsupported audio format
        detail:
          type: string
          description: Human-readable explanation. Do not parse it.
          example: >-
            The file is not audio this API reads: WAV, MP3, FLAC, OGG (Vorbis or
            Opus) or AIFF, up to 8 channels
        source:
          type: object
          description: The part of the request the error refers to.
          properties:
            pointer:
              type: string
              description: JSON pointer to the request field.
              example: /file
            parameter:
              type: string
              description: The query parameter.
    AudioWatermarkDetectionChannel:
      type: object
      required:
        - channel
        - watermark_detected
      properties:
        channel:
          type: integer
          minimum: 0
          description: Zero-based channel index.
          example: 1
        watermark_detected:
          type: boolean
          description: '`true` when the watermark was read on this channel.'
          example: true
    AudioWatermarkDetectionAudio:
      type: object
      description: What was read.
      required:
        - duration_millis
        - sample_rate
        - format
        - channels
      properties:
        duration_millis:
          type: integer
          description: Duration of the audio, in milliseconds.
          example: 24060
        sample_rate:
          type: integer
          description: >-
            Sample rate the audio was read at, in Hz. It is the file's own rate
            from 8000 to 48000, and 24000 for files resampled from a rate
            outside that range.
          example: 16000
        format:
          type: string
          description: >-
            Container format of the file as detected, in lower case: for example
            `wav`, `mp3`, `flac`, `ogg` or `aiff`. On the WebSocket stream, the
            `format` query parameter.
          example: wav
        channels:
          type: integer
          description: Number of channels read.
          example: 1
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````