通过Power Apps Custom Connector来call通OpenAI Wisper
Wisper的使用是把整个文件以object的形式传到OpenAI做分析。也要切记Wisper只支持20MB上线的上传。
在custom connector中可以通过swagger来配置。 一旦配置成功,可以通过power apps中的canvas来录入语音,并且直接把audio传入。
swagger: '2.0'
info:
title: whisper
description: ''
version: '1.0'
host: api.openai.com
basePath: /
schemes:
- https
consumes: []
produces: []
paths:
/v1/audio/transcriptions:
post:
responses:
default:
description: default
schema:
type: object
properties:
text:
type: string
description: text
summary: Speech to Text
operationId: Speech2Text
consumes:
- multipart/form-data
parameters:
- name: Content-Type
in: header
required: false
type: string
- name: file
in: formData
type: file
required: true
- name: filename
in: formData
type: string
required: true
- name: model
in: formData
type: string
required: true
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
API Key:
type: apiKey
in: header
name: Authorization
security:
- API Key: []
tags: []