# 发送语音消息

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/qw/doApi:
    post:
      summary: 发送语音消息
      deprecated: false
      description: AMR格式
      tags:
        - 消息模块
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: X-QIWEI-TOKEN
          in: header
          description: ''
          example: '{{tokenId}}'
          schema:
            type: string
            default: '{{tokenId}}'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  title: /msg/sendVoice
                params:
                  type: object
                  properties:
                    guid:
                      type: string
                    fileAesKey:
                      type: string
                    fileId:
                      type: string
                    fileSize:
                      type: integer
                    voiceTime:
                      type: integer
                    toId:
                      type: string
                  required:
                    - guid
                    - fileAesKey
                    - fileId
                    - fileSize
                    - voiceTime
                    - toId
                  x-apifox-orders:
                    - guid
                    - fileAesKey
                    - fileId
                    - fileSize
                    - voiceTime
                    - toId
                  x-apifox-ignore-properties: []
              required:
                - method
                - params
              x-apifox-orders:
                - method
                - params
              x-apifox-ignore-properties: []
            example:
              method: /msg/sendVoice
              params:
                guid: '{{guid}}'
                fileAesKey: 9ea774c26eb444a3b07cb5da5d3cf33f
                fileId: >-
                  306b0201020464306202010002044c9aff3e02030f42410204c83b66b4020468c0ed04042439656137373463322d366562342d343461332d623037632d6235646135643363663333660203100005020301ccb004108f4f247167c75011fa9fc15ee65baa3b0201050201000400
                fileSize: 117935
                voiceTime: 2
                toId: '{{toId}}'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/%E5%93%8D%E5%BA%94%E6%88%90%E5%8A%9F'
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 消息模块
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7051713/apis/api-344613912-run
components:
  schemas:
    响应成功:
      type: object
      properties:
        data:
          type: object
          properties: {}
          x-apifox-orders: []
          x-apifox-ignore-properties: []
        code:
          type: integer
        msg:
          type: string
      required:
        - data
        - code
        - msg
      x-apifox-orders:
        - data
        - code
        - msg
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes: {}
servers: []
security: []

```