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

# audio-classification

> Classify audio clips into predefined categories such as speech emotion, sound detection, and music genres



## OpenAPI

````yaml post /models/v2/aaraki/wav2vec2-base-finetuned-ks
openapi: 3.0.3
info:
  title: Open Source AI Models API – Multimodal
  description: >-
    API for running open-source AI models that take text, vision, audio, and
    video as input.
  version: 1.0.0
servers:
  - url: https://api.bytez.com
    description: Production server
security: []
paths:
  /models/v2/aaraki/wav2vec2-base-finetuned-ks:
    post:
      summary: audio-classification
      description: >-
        Classify audio clips into predefined categories such as speech emotion,
        sound detection, and music genres
      operationId: audio-classification
      requestBody:
        description: Schema for audio-classification models
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  example: >-
                    https://huggingface.co/datasets/huggingfacejs/tasks/resolve/main/audio-classification/audio.wav
                base64:
                  type: string
                  example: >-
                    data:audio/wav;base64,...BASE_64_GOES_HERE (Only use this is
                    you are not using a url)
              required:
                - url
      responses:
        '200':
          description: Successful audio-classification response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - output
                properties:
                  error:
                    type: string
                    nullable: true
                    description: Null on success; otherwise an error message.
                  output:
                    type: array
                    description: >-
                      Successful response with audio-classification scores and
                      labels
                    example:
                      - score: 0.12049942463636398
                        label: 'no'
                      - score: 0.11662919074296951
                        label: down
                      - score: 0.1127392128109932
                        label: _unknown_
                      - score: 0.10831832140684128
                        label: stop
                      - score: 0.10017725080251694
                        label: go
                      - score: 0.09701883047819138
                        label: left
                      - score: 0.07834923267364502
                        label: 'on'
                      - score: 0.07112456858158112
                        label: right
                      - score: 0.06147514656186104
                        label: 'off'
                      - score: 0.04827316105365753
                        label: 'yes'
                      - score: 0.047529637813568115
                        label: up
                      - score: 0.03786593675613403
                        label: _silence_
        '401':
          description: Auth error - check your api key and how you're sending it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
                  output:
                    type: string
                    example: null
        '429':
          description: Too Many Requests – You have hit the rate limit.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Rate limit exceeded
                  output:
                    type: string
                    example: null
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        Set `Authorization` header to `BYTEZ_KEY` 
        ``` 'Authorization: YOUR_BYTEZ_KEY_HERE' ```

````