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

# Transcribe Face File

> Transcribe an audio or video file using AssemblyAI with speaker diarization.
Returns raw transcript text and speaker-labelled segments.
Charged to the user's credit account (USD). Does NOT create any document or thread.
The client should use the returned text to call POST /faces/{face_id}/upload.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/faces/{face_id}/transcribe
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/faces/{face_id}/transcribe:
    post:
      tags:
        - Faces
      summary: Transcribe Face File
      description: >-
        Transcribe an audio or video file using AssemblyAI with speaker
        diarization.

        Returns raw transcript text and speaker-labelled segments.

        Charged to the user's credit account (USD). Does NOT create any document
        or thread.

        The client should use the returned text to call POST
        /faces/{face_id}/upload.
      operationId: transcribe_face_file_v1_faces__face_id__transcribe_post
      parameters:
        - name: face_id
          in: path
          required: true
          schema:
            type: string
            title: Face Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_transcribe_face_file_v1_faces__face_id__transcribe_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TranscribeResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_transcribe_face_file_v1_faces__face_id__transcribe_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: Body_transcribe_face_file_v1_faces__face_id__transcribe_post
    TranscribeResponse:
      properties:
        text:
          type: string
          title: Text
        duration_seconds:
          type: number
          title: Duration Seconds
        has_speakers:
          type: boolean
          title: Has Speakers
        speakers:
          items: {}
          type: array
          title: Speakers
        utterances:
          items:
            $ref: '#/components/schemas/UtteranceObject'
          type: array
          title: Utterances
        amount_charged_usd:
          type: number
          title: Amount Charged Usd
      type: object
      required:
        - text
        - duration_seconds
        - has_speakers
        - speakers
        - utterances
        - amount_charged_usd
      title: TranscribeResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UtteranceObject:
      properties:
        speaker:
          type: string
          title: Speaker
        text:
          type: string
          title: Text
      type: object
      required:
        - speaker
        - text
      title: UtteranceObject
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.