NodeJS
概述¶
本文主要讲述 NodeJS 版本的SDK使用方法.
源码仓库¶
https://git.imgo.tv/playtech/mediacloud/v1/openai-sdk
使用说明¶
import OpenAI from 'mediacloud-openai'
const client = new OpenAI({
appid: '',
appSecret: '',
tenant: '',
})
client.Text2Voice("我爱北京天安门")
.then(result => {
console.log(result)
})