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

# Update Voice



## OpenAPI

````yaml post /v1/voices/update
openapi: 3.0.2
info:
  title: Vocode Hosted API
  description: |2-

            Vocode's Hosted API helps you automate phone calls in minutes. 🚀

            ## Numbers

            You can buy phone lines and place agents on them.

            ## Calls

            You can start, end, and get information about calls.
            
  termsOfService: http://example.com/terms/
  contact:
    name: Support
    email: support@vocode.dev
  version: 1.0.0
servers:
  - url: https://api.vocode.dev
    description: Production environment
  - url: https://staging.vocode.dev
    description: Staging environment
security: []
tags:
  - name: numbers
    description: Operations with phone numbers.
  - name: calls
    description: Manage calls.
paths:
  /v1/voices/update:
    post:
      tags:
        - voices
      summary: Update Voice
      operationId: update_voice
      parameters:
        - required: true
          schema:
            title: Id
            type: string
            format: uuid
          name: id
          in: query
      requestBody:
        content:
          application/json:
            schema:
              title: Update Params
              anyOf:
                - $ref: '#/components/schemas/AzureVoiceUpdateParams'
                - $ref: '#/components/schemas/RimeVoiceUpdateParams'
                - $ref: '#/components/schemas/ElevenLabsVoiceUpdateParams'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Update Voice V1 Voices Update Post
                anyOf:
                  - $ref: '#/components/schemas/AzureVoice'
                  - $ref: '#/components/schemas/RimeVoice'
                  - $ref: '#/components/schemas/ElevenLabsVoice'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AzureVoiceUpdateParams:
      title: AzureVoiceUpdateParams
      required:
        - type
      type: object
      properties:
        type:
          $ref: '#/components/schemas/VoiceType'
        voice_name:
          title: Voice Name
          anyOf:
            - type: string
            - $ref: '#/components/schemas/Undefined'
        pitch:
          title: Pitch
          anyOf:
            - type: integer
            - $ref: '#/components/schemas/Undefined'
        rate:
          title: Rate
          anyOf:
            - type: integer
            - $ref: '#/components/schemas/Undefined'
    RimeVoiceUpdateParams:
      title: RimeVoiceUpdateParams
      required:
        - type
      type: object
      properties:
        type:
          $ref: '#/components/schemas/VoiceType'
        speaker:
          title: Speaker
          anyOf:
            - type: string
            - $ref: '#/components/schemas/Undefined'
    ElevenLabsVoiceUpdateParams:
      title: ElevenLabsVoiceUpdateParams
      required:
        - type
      type: object
      properties:
        type:
          $ref: '#/components/schemas/VoiceType'
        voice_id:
          title: Voice Id
          anyOf:
            - type: string
            - $ref: '#/components/schemas/Undefined'
        stability:
          title: Stability
          anyOf:
            - type: number
            - $ref: '#/components/schemas/Undefined'
        similarity_boost:
          title: Similarity Boost
          anyOf:
            - type: number
            - $ref: '#/components/schemas/Undefined'
        api_key:
          title: Api Key
          anyOf:
            - type: string
            - $ref: '#/components/schemas/Undefined'
    AzureVoice:
      title: AzureVoice
      required:
        - id
        - user_id
        - voice_name
      type: object
      properties:
        id:
          title: Id
          type: string
          format: uuid
        user_id:
          title: User Id
          type: string
          format: uuid
        type:
          allOf:
            - $ref: '#/components/schemas/VoiceType'
          default: voice_azure
        voice_name:
          title: Voice Name
          type: string
        pitch:
          title: Pitch
          type: integer
          default: 0
        rate:
          title: Rate
          type: integer
          default: 15
    RimeVoice:
      title: RimeVoice
      required:
        - id
        - user_id
        - speaker
      type: object
      properties:
        id:
          title: Id
          type: string
          format: uuid
        user_id:
          title: User Id
          type: string
          format: uuid
        type:
          allOf:
            - $ref: '#/components/schemas/VoiceType'
          default: voice_rime
        speaker:
          title: Speaker
          type: string
    ElevenLabsVoice:
      title: ElevenLabsVoice
      required:
        - id
        - user_id
        - voice_id
        - api_key
      type: object
      properties:
        id:
          title: Id
          type: string
          format: uuid
        user_id:
          title: User Id
          type: string
          format: uuid
        type:
          allOf:
            - $ref: '#/components/schemas/VoiceType'
          default: voice_eleven_labs
        voice_id:
          title: Voice Id
          type: string
        stability:
          title: Stability
          type: number
        similarity_boost:
          title: Similarity Boost
          type: number
        api_key:
          title: Api Key
          type: string
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
    VoiceType:
      title: VoiceType
      enum:
        - voice_base
        - voice_azure
        - voice_rime
        - voice_eleven_labs
      type: string
      description: An enumeration.
    Undefined:
      title: Undefined
      type: object
      properties: {}
    ValidationError:
      title: ValidationError
      required:
        - loc
        - msg
        - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````