callback/

directory
v1.2.0-dev.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: MIT

README

Callback Example

This example shows how to use the Callback functionality on the Prerecorded API.

NOTE: To use this example, the endpoint component must run somewhere with a public-facing IP address. You cannot run this example locally behind your typical firewall.

Configuration

This example consists of two components:

The callback component requires the Deepgram API Key environment variable to be configured to run.

export DEEPGRAM_API_KEY=YOUR-APP-KEY-HERE

Installation

Compile the endpoint application and upload the binary and sample SSL certificates to a system on the public-facing internet. This could be an EC2 instance on AWS, an instance on GCP, or etc. Then, run the endpoint binary.

On the callback project, modify the IP address constant in the code with the public-facing IP address of your EC2, GCP, etc instance.

hostport string = "<REPLACE WITH YOUR HOSTPORT - FORMAT: 127.0.0.1:3000>"

Then run the callback application. This can be done from your local laptop.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL