This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const baseUrl = 'https://api.assemblyai.com/v2' | |
const createTranscript = async (z, bundle) => { | |
const data = { | |
audio_url: "https://storage.googleapis.com/aai-docs-samples/nbc.mp3" | |
} | |
const transcriptUrl = baseUrl + '/transcript' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* globals describe, it, expect */ | |
const zapier = require('zapier-platform-core'); | |
const App = require('../index'); | |
const appTester = zapier.createAppTester(App); | |
// Load .env file variables | |
zapier.tools.env.inject() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import signal | |
import vocode | |
from vocode.streaming.streaming_conversation import StreamingConversation | |
from vocode.helpers import create_microphone_input_and_speaker_output | |
# Transcriber | |
from vocode.streaming.models.transcriber import AssemblyAITranscriberConfig | |
from vocode.streaming.transcriber.assemblyai_transcriber import AssemblyAITranscriber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# requirements: pyaudio and websockets | |
import pyaudio | |
import websockets | |
import asyncio | |
import base64 | |
import json | |
FRAMES_PER_BUFFER = 3200 | |
FORMAT = pyaudio.paInt16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net.Http; | |
using System.Text; | |
// Third-pary package needs to be added, e.g, with: | |
// dotnet add package NewtonSoft.Json | |
using Newtonsoft.Json; | |
string url = "https://api.assemblyai.com/v2/transcript"; |