examples/

directory
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 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 or this could also be done by a simple export seen below.

export DEEPGRAM_API_KEY = "YOUR_DEEPGRAM_API_KEY"
Run the project

Make sure you're in the directory with the main.go file and run the project with the following command.

go run main.go

Directories

Path Synopsis
manage
prerecorded
url
streaming

Jump to

Keyboard shortcuts

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