import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
assemblyai: {
type: "app",
app: "assemblyai",
}
},
async run({steps, $}) {
const data = {
"audio_url": `{{your_audio_url}}`,
//for testing, try: https://storage.googleapis.com/aai-web-samples/espn-bears.m4a
}
return await axios($, {
method: "POST",
url: `https://api.assemblyai.com/v2/transcript`,
headers: {
"authorization": `${this.assemblyai.$auth.api_key}`,
},
data,
})
},
})
Emit new event when a transcribed audio file from AssemblyAI is ready. See the documentation
Export your completed transcripts in SRT (srt) or VTT (vtt) format, which can be used for subtitles and closed captions in videos. See the documentation
Fetches a specific transcribed result from the AssemblyAI API. See the documentation
AssemblyAI uses API keys for authentication. When you connect your AssemblyAI account, Pipedream securely stores the keys so you can easily authenticate to AssemblyAI APIs in both code and no-code steps.
Sign in and copy your API key from the Account Settings page.