The IBM Cloud Speech to Text API can be used to transcribe audio files in a variety of different languages. This can be useful for a number of different applications, such as:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ibm_cloud_speech_to_text: {
type: "app",
app: "ibm_cloud_speech_to_text",
}
},
async run({steps, $}) {
const data = {
"text": `hello world`,
}
return await axios($, {
method: "post",
url: `${this.ibm_cloud_speech_to_text.$auth.instance_url}/v1/synthesize`,
headers: {
"Content-Type": `application/json`,
"Accept": `audio/wav`,
},
auth: {
username: `apikey`,
password: `${this.ibm_cloud_speech_to_text.$auth.api_key}`,
},
data,
})
},
})
IBM Cloud - Speech to Text uses API keys for authentication. When you connect your IBM Cloud - Speech to Text account, Pipedream securely stores the keys so you can easily authenticate to IBM Cloud - Speech to Text APIs in both code and no-code steps.