examples/

directory
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT

README

Examples for Testing Features Locally

The example projects are meant to be used to test features locally by contributors working on this SDK.

Steps to Test Your Code

If you are contributing changes to this SDK, you can test those changes by using the prerecorded or streaming projects in the examples folder. Here are the steps to follow:

Add Your Code

Make your changes to the SDK (be sure you are on a branch you have created to do this work).

Install dependencies

If the project requires third-party dependencies and not just standard library dependencies, you will have to install them. Make sure you are in the folder of the specific project (for example: streaming) and then use this command:

go mod tidy
Set your API Key as an Environment Variable named "DEEPGRAM_API_KEY"

If using bash, this could be done in your ~/.bash_profile like so:

export DEEPGRAM_API_KEY = "YOUR_DEEPGRAM_API_KEY"

or this could also be done by a simple export before executing your Go application:

DEEPGRAM_API_KEY="YOUR_DEEPGRAM_API_KEY" go run main.go
Run the project

If you chose to set an environment variable in your shell profile (ie .bash_profile) you can change directory into each example folder and run the example like so:

go run main.go

Directories

Path Synopsis
analyze
intent command
sentiment command
summary command
topic command
manage
balances command
invitations command
keys command
members command
projects command
scopes command
usage command
prerecorded
file command
intent command
sentiment command
stream command
summary command
topic command
url command
speak
file/woodchuck command
streaming
http command
microphone command
replay command
test command

Jump to

Keyboard shortcuts

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