We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 674ad32 commit b485aa8Copy full SHA for b485aa8
functions/src/webhooks/transcription.ts
@@ -3,6 +3,7 @@ import { AssemblyAI } from "assemblyai"
3
import { db, Timestamp } from "../firebase"
4
import { sha256 } from "js-sha256"
5
6
+
7
export const transcription = functions
8
.runWith({ secrets: ["ASSEMBLY_API_KEY"] })
9
.https.onRequest(async (req, res) => {
@@ -11,9 +12,7 @@ export const transcription = functions
11
12
// If we get a request with the right header and status, get the
13
// transcription from the assembly API.
14
const assembly = new AssemblyAI({
- apiKey: process.env.ASSEMBLY_API_KEY
15
- ? process.env.ASSEMBLY_API_KEY
16
- : ""
+ apiKey: process.env.ASSEMBLY_API_KEY ? process.env.ASSEMBLY_API_KEY : ""
17
})
18
19
const transcript = await assembly.transcripts.get(
0 commit comments