CINXE.COM
sdk package - github.com/deepgram/deepgram-go-sdk - Go Packages
<!DOCTYPE html> <html lang="en" data-layout="responsive" data-local=""> <head> <script> window.addEventListener('error', window.__err=function f(e){f.p=f.p||[];f.p.push(e)}); </script> <script> (function() { const theme = document.cookie.match(/prefers-color-scheme=(light|dark|auto)/)?.[1] if (theme) { document.querySelector('html').setAttribute('data-theme', theme); } }()) </script> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta class="js-gtmID" data-gtmid="GTM-W8MVQXG"> <link rel="shortcut icon" href="/static/shared/icon/favicon.ico"> <link rel="canonical" href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk"> <link href="/static/frontend/frontend.min.css?version=prod-frontend-00090-vzc" rel="stylesheet"> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Go Packages"> <title>sdk package - github.com/deepgram/deepgram-go-sdk - Go Packages</title> <link href="/static/frontend/unit/unit.min.css?version=prod-frontend-00090-vzc" rel="stylesheet"> <link href="/static/frontend/unit/main/main.min.css?version=prod-frontend-00090-vzc" rel="stylesheet"> </head> <body> <script> function loadScript(src, mod = true) { let s = document.createElement('script'); s.src = src; if (mod) { s.type = 'module'; s.async = true; s.defer = true } document.head.appendChild(s); } loadScript("/third_party/dialog-polyfill/dialog-polyfill.js", false) loadScript("/static/frontend/frontend.js"); </script> <header class="go-Header go-Header--full js-siteHeader"> <div class="go-Header-inner go-Header-inner--dark"> <nav class="go-Header-nav"> <a href="https://go.dev/" class="js-headerLogo" data-gtmc="nav link" data-test-id="go-header-logo-link" role="heading" aria-level="1"> <img class="go-Header-logo" src="/static/shared/logo/go-white.svg" alt="Go"> </a> <div class="skip-navigation-wrapper"> <a class="skip-to-content-link" aria-label="Skip to main content" href="#main-content"> Skip to Main Content </a> </div> <div class="go-Header-rightContent"> <div class="go-SearchForm js-searchForm"> <form class="go-InputGroup go-ShortcutKey go-SearchForm-form" action="/search" data-shortcut="/" data-shortcut-alt="search" data-gtmc="search form" aria-label="Search for a package" role="search" > <input name="q" class="go-Input js-searchFocus" aria-label="Search for a package" type="search" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" placeholder="Search packages or symbols" value="" /> <input name="m" value="" hidden> <button class="go-Button go-Button--inverted" aria-label="Submit search"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/search_gm_grey_24dp.svg" alt="" /> </button> </form> <button class="go-SearchForm-expandSearch js-expandSearch" data-gtmc="nav button" aria-label="Open search" data-test-id="expand-search"> <img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/search_gm_grey_24dp.svg" alt=""> </button> </div> <ul class="go-Header-menu"> <li class="go-Header-menuItem"> <a class="js-desktop-menu-hover" href="#" data-gtmc="nav link"> Why Go <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon"> </a> <ul class="go-Header-submenu go-Header-submenu--why js-desktop-submenu-hover" aria-label="submenu"> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/solutions#case-studies"> </span>Case Studies</span> </a> </div> <p>Common problems companies solve with Go</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/solutions#use-cases"> </span>Use Cases</span> </a> </div> <p>Stories about how and why companies use Go</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/security/policy/"> </span>Security Policy</span> </a> </div> <p>How Go can help keep you secure by default</p> </li> </ul> </li> <li class="go-Header-menuItem"> <a href="https://go.dev/learn/" data-gtmc="nav link">Learn</a> </li> <li class="go-Header-menuItem"> <a class="js-desktop-menu-hover" href="#" data-gtmc="nav link"> Docs <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon"> </a> <ul class="go-Header-submenu go-Header-submenu--docs js-desktop-submenu-hover" aria-label="submenu"> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/doc/effective_go"> <span>Effective Go</span> </a> </div> <p>Tips for writing clear, performant, and idiomatic Go code</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/doc/"> <span>Go User Manual</span> </a> </div> <p>A complete introduction to building software with Go</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://pkg.go.dev/std"> <span>Standard library</span> </a> </div> <p>Reference documentation for Go's standard library</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/doc/devel/release"> <span>Release Notes</span> </a> </div> <p>Learn what's new in each Go release</p> </li> </ul> </li> <li class="go-Header-menuItem go-Header-menuItem--active"> <a href="/" data-gtmc="nav link">Packages</a> </li> <li class="go-Header-menuItem"> <a class="js-desktop-menu-hover" href="#" data-gtmc="nav link"> Community <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon"> </a> <ul class="go-Header-submenu go-Header-submenu--community js-desktop-submenu-hover" aria-label="submenu"> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/talks/"> <span>Recorded Talks</span> </a> </div> <p>Videos from prior events</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://www.meetup.com/pro/go"> <span>Meetups</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </div> <p>Meet other local Go developers</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://github.com/golang/go/wiki/Conferences"> <span>Conferences</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </div> <p>Learn and network with Go developers from around the world</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/blog"> <span>Go blog</span> </a> </div> <p>The Go project's official blog.</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/help"> <span>Go project</span> </a> </div> <p>Get help and stay informed from Go</p> </li> <li class="go-Header-submenuItem"> <div> Get connected </div> <p></p> <div class="go-Header-socialIcons"> <a class="go-Header-socialIcon" aria-label="Get connected with google-groups (Opens in new window)" href="https://groups.google.com/g/golang-nuts" ><img src="/static/shared/logo/social/google-groups.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with github (Opens in new window)" href="https://github.com/golang"><img src="/static/shared/logo/social/github.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with twitter (Opens in new window)" href="https://twitter.com/golang"><img src="/static/shared/logo/social/twitter.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with reddit (Opens in new window)" href="https://www.reddit.com/r/golang/"><img src="/static/shared/logo/social/reddit.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with slack (Opens in new window)" href="https://invite.slack.golangbridge.org/"><img src="/static/shared/logo/social/slack.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with stack-overflow (Opens in new window)" href="https://stackoverflow.com/collectives/go"><img src="/static/shared/logo/social/stack-overflow.svg" /></a> </div> </li> </ul> </li> </ul> <button class="go-Header-navOpen js-headerMenuButton go-Header-navOpen--white" data-gtmc="nav button" aria-label="Open navigation"> </button> </div> </nav> </div> </header> <aside class="go-NavigationDrawer js-header"> <nav class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="https://go.dev/"> <img class="go-NavigationDrawer-logo" src="/static/shared/logo/go-blue.svg" alt="Go."> </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav"> <a href="#"> <span>Why Go</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_next_gm_grey_24dp.svg" alt=""> </i> </a> <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem"> <div class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="#"> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_before_gm_grey_24dp.svg" alt=""> </i> Why Go </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/solutions#case-studies"> Case Studies </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/solutions#use-cases"> Use Cases </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/security/policy/"> Security Policy </a> </li> </ul> </div> </div> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/learn/">Learn</a> </li> <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav"> <a href="#"> <span>Docs</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_next_gm_grey_24dp.svg" alt=""> </i> </a> <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem"> <div class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="#"><i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_before_gm_grey_24dp.svg" alt=""> </i> Docs </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/doc/effective_go"> Effective Go </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/doc/"> Go User Manual </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://pkg.go.dev/std"> Standard library </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/doc/devel/release"> Release Notes </a> </li> </ul> </div> </div> </li> <li class="go-NavigationDrawer-listItem go-NavigationDrawer-listItem--active"> <a href="/">Packages</a> </li> <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav"> <a href="#"> <span>Community</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_next_gm_grey_24dp.svg" alt=""> </i> </a> <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem"> <div class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="#"> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_before_gm_grey_24dp.svg" alt=""> </i> Community </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/talks/"> Recorded Talks </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://www.meetup.com/pro/go"> Meetups <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://github.com/golang/go/wiki/Conferences"> Conferences <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/blog"> Go blog </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/help"> Go project </a> </li> <li class="go-NavigationDrawer-listItem"> <div>Get connected</div> <div class="go-Header-socialIcons"> <a class="go-Header-socialIcon" href="https://groups.google.com/g/golang-nuts"><img src="/static/shared/logo/social/google-groups.svg" /></a> <a class="go-Header-socialIcon" href="https://github.com/golang"><img src="/static/shared/logo/social/github.svg" /></a> <a class="go-Header-socialIcon" href="https://twitter.com/golang"><img src="/static/shared/logo/social/twitter.svg" /></a> <a class="go-Header-socialIcon" href="https://www.reddit.com/r/golang/"><img src="/static/shared/logo/social/reddit.svg" /></a> <a class="go-Header-socialIcon" href="https://invite.slack.golangbridge.org/"><img src="/static/shared/logo/social/slack.svg" /></a> <a class="go-Header-socialIcon" href="https://stackoverflow.com/collectives/go"><img src="/static/shared/logo/social/stack-overflow.svg" /></a> </div> </li> </ul> </div> </div> </li> </ul> </nav> </aside> <div class="go-NavigationDrawer-scrim js-scrim" role="presentation"></div> <main class="go-Main" id="main-content"> <div class="go-Main-banner" role="alert"></div> <header class="go-Main-header js-mainHeader"> <nav class="go-Main-headerBreadcrumb go-Breadcrumb" aria-label="Breadcrumb" data-test-id="UnitHeader-breadcrumb"> <ol> <li data-test-id="UnitHeader-breadcrumbItem"> <a href="/" data-gtmc="breadcrumb link">Discover Packages</a> </li> <li> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2" data-gtmc="breadcrumb link" aria-current="location" data-test-id="UnitHeader-breadcrumbCurrent"> github.com/deepgram/deepgram-go-sdk </a> <button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard. github.com/deepgram/deepgram-go-sdk" aria-label="Copy Path to Clipboard" data-to-copy="github.com/deepgram/deepgram-go-sdk" data-gtmc="breadcrumbs button" > <img class="go-Icon go-Icon--accented" height="24" width="24" src="/static/shared/icon/content_copy_gm_grey_24dp.svg" alt="" > </button> </li> </ol> </nav> <div class="go-Main-headerContent"> <div class="go-Main-headerTitle js-stickyHeader"> <a class="go-Main-headerLogo" href="https://go.dev/" aria-hidden="true" tabindex="-1" data-gtmc="header link" aria-label="Link to Go Homepage"> <img height="78" width="207" src="/static/shared/logo/go-blue.svg" alt="Go"> </a> <h1 class="UnitHeader-titleHeading" data-test-id="UnitHeader-title">sdk</h1> <span class="go-Chip go-Chip--inverted">package</span> <span class="go-Chip go-Chip--inverted">module</span> <button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard. github.com/deepgram/deepgram-go-sdk" aria-label="Copy Path to Clipboard" data-to-copy="github.com/deepgram/deepgram-go-sdk" data-gtmc="title button" tabindex="-1" > <img class="go-Icon go-Icon--accented" height="24" width="24" src="/static/shared/icon/content_copy_gm_grey_24dp.svg" alt="" /> </button> </div> <div class="go-Main-headerDetails"> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-version"> <a href="?tab=versions" aria-label="Version: v1.6.2" data-gtmc="header link" aria-describedby="version-description"> <span class="go-textSubtle" aria-hidden="true">Version: </span> v1.6.2 </a> <div class="screen-reader-only" id="version-description" hidden> Opens a new window with list of versions in this module. </div> <span class="DetailsHeader-badge--latest" data-test-id="UnitHeader-minorVersionBanner"> <span class="go-Chip DetailsHeader-span--latest">Latest</span> <span class="go-Chip DetailsHeader-span--notAtLatest"> Latest <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary> <img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/alert_gm_grey_24dp.svg" alt="Warning"> </summary> <p>This package is not in the latest version of its module.</p> </details> </span> <a href="/github.com/deepgram/deepgram-go-sdk" aria-label="Go to Latest Version" data-gtmc="header link"> <span class="go-Chip go-Chip--alert DetailsHeader-span--goToLatest">Go to latest</span> </a> </span> </span> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-commitTime"> Published: Nov 7, 2024 </span> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-licenses"> License: <a href="/github.com/deepgram/deepgram-go-sdk@main?tab=licenses" data-test-id="UnitHeader-license" data-gtmc="header link" aria-describedby="license-description">MIT</a> </span> <div class="screen-reader-only" id="license-description" hidden> Opens a new window with license information. </div> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-imports"> <a href="/github.com/deepgram/deepgram-go-sdk@main?tab=imports" aria-label="Imports: 10" data-gtmc="header link" aria-describedby="imports-description"> <span class="go-textSubtle">Imports: </span>10 </a> </span> <div class="screen-reader-only" id="imports-description" hidden> Opens a new window with list of imports. </div> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-importedby"> <a href="/github.com/deepgram/deepgram-go-sdk@main?tab=importedby" aria-label="Imported By: 1" data-gtmc="header link" aria-describedby="importedby-description"> <span class="go-textSubtle">Imported by: </span>1 </a> </span> <div class="screen-reader-only" id="importedby-description" hidden> Opens a new window with list of known importers. </div> </div> <div class="UnitHeader-overflowContainer"> <svg class="UnitHeader-overflowImage" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"> <path d="M0 0h24v24H0z" fill="none"/> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/> </svg> <select class="UnitHeader-overflowSelect js-selectNav" tabindex="-1"> <option value="/">Main</option> <option value="/github.com/deepgram/deepgram-go-sdk@main?tab=versions"> Versions </option> <option value="/github.com/deepgram/deepgram-go-sdk@main?tab=licenses"> Licenses </option> <option value="/github.com/deepgram/deepgram-go-sdk@main?tab=imports"> Imports </option> <option value="/github.com/deepgram/deepgram-go-sdk@main?tab=importedby"> Imported By </option> </select> </div> </div> </header> <aside class="go-Main-aside js-mainAside"> <div class="UnitMeta"> <h2 class="go-textLabel">Details</h2> <ul class="UnitMeta-details"> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Valid <a href="https://github.com/deepgram/deepgram-go-sdk/tree/v1.6.2/go.mod" target="_blank" rel="noopener">go.mod</a> file <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p> The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go. </p> </details> </li> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Redistributable license <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p> Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed. </p> </details> </li> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Tagged version <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p>Modules with tagged versions give importers more predictable builds.</p> </details> </li> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Stable version <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p>When a project reaches major version v1 it is considered stable.</p> </details> </li> <li class="UnitMeta-detailsLearn"> <a href="/about#best-practices" data-gtmc="meta link">Learn more about best practices</a> </li> </ul> <h2 class="go-textLabel">Repository</h2> <div class="UnitMeta-repo"> <a href="https://github.com/deepgram/deepgram-go-sdk" title="https://github.com/deepgram/deepgram-go-sdk" target="_blank" rel="noopener"> github.com/deepgram/deepgram-go-sdk </a> </div> <h2 class="go-textLabel">Links</h2> <ul class="UnitMeta-links"> <li> <a href="https://deps.dev/go/github.com%2Fdeepgram%2Fdeepgram-go-sdk/v1.6.2" title="View this module on Open Source Insights" target="_blank" rel="noopener" data-test-id="meta-link-depsdev"> <img class="depsdev-Icon" src="/static/shared/icon/depsdev-logo.svg" alt="Open Source Insights Logo" /> Open Source Insights </a> </li> </ul> </div> </aside> <nav class="go-Main-nav go-Main-nav--sticky js-mainNav" aria-label="Outline"> <div class="go-Main-navDesktop"> <div class="UnitOutline-jumpTo"> <button class="UnitOutline-jumpToInput go-ShortcutKey js-jumpToInput" aria-controls="jump-to-modal" aria-label="Open Jump to Identifier" data-shortcut="f" data-shortcut-alt="find" data-test-id="jump-to-button" data-gtmc="outline button"> Jump to ... </button> </div> <ul class="go-Tree js-tree" role="tree" aria-label="Outline"> <li class="js-readmeOutline"> <a href="#section-readme" data-gtmc="outline link"> README </a> <ul id="readme-outline"> <li> <a href="#readme-sdk-documentation" data-gtmc="readme outline link"> SDK Documentation </a> </li> <li> <a href="#readme-getting-an-api-key" data-gtmc="readme outline link"> Getting an API Key </a> </li> <li> <a href="#readme-installation" data-gtmc="readme outline link"> Installation </a> </li> <li> <a href="#readme-requirements" data-gtmc="readme outline link"> Requirements </a> </li> <li> <a href="#readme-quickstarts" data-gtmc="readme outline link"> Quickstarts </a> <ul> <li> <a href="#readme-speech-to-text-from-live-streaming-audio-quickstart" data-gtmc="readme outline link"> Speech-to-Text from Live/Streaming Audio Quickstart </a> </li> <li> <a href="#readme-speech-to-text-from-prerecorded-audio-quickstart" data-gtmc="readme outline link"> Speech-to-Text from PreRecorded Audio Quickstart </a> </li> <li> <a href="#readme-text-to-speech-websocket-quickstart" data-gtmc="readme outline link"> Text-to-Speech WebSocket Quickstart </a> </li> <li> <a href="#readme-text-to-speech-rest-quickstart" data-gtmc="readme outline link"> Text-to-Speech REST Quickstart </a> </li> </ul> </li> <li> <a href="#readme-examples" data-gtmc="readme outline link"> Examples </a> </li> <li> <a href="#readme-logging" data-gtmc="readme outline link"> Logging </a> </li> <li> <a href="#readme-testing" data-gtmc="readme outline link"> Testing </a> </li> <li> <a href="#readme-backwards-compatibility" data-gtmc="readme outline link"> Backwards Compatibility </a> </li> <li> <a href="#readme-development-and-contributing" data-gtmc="readme outline link"> Development and Contributing </a> <ul> <li> <a href="#readme-getting-help" data-gtmc="readme outline link"> Getting Help </a> </li> </ul> </li> </ul> </li> <li> <a href="#section-documentation" data-gtmc="outline link"> Documentation </a> </li> <li> <a href="#section-sourcefiles" data-gtmc="outline link"> Source Files </a> </li> <li> <a href="#section-directories" data-gtmc="outline link"> Directories </a> </li> </ul> </div> <div class="go-Main-navMobile js-mainNavMobile"> <label class="go-Label"> <select class="go-Select"> <option selected disabled>README</option> </select> </label> </div> </nav> <article class="go-Main-article js-mainContent"> <div class="UnitDetails" data-test-id="UnitDetails" style="display: block;"> <div class="UnitDetails-content js-unitDetailsContent" data-test-id="UnitDetails-content"> <div class="UnitReadme UnitReadme--expanded js-readme"> <h2 class="UnitReadme-title" id="section-readme"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/chrome_reader_mode_gm_grey_24dp.svg" alt=""> README <a class="UnitReadme-idLink" href="#section-readme" aria-label="Go to Readme">¶</a> </h2> <div class="UnitReadme-content" data-test-id="Unit-readmeContent"> <div class="Overview-readmeContent js-readmeContent"><h3 class="h1" id="readme-deepgram-go-sdk">Deepgram Go SDK</h3> <p><a href="https://discord.gg/xWRaCDBtW4" rel="nofollow"><img src="https://dcbadge.vercel.app/api/server/xWRaCDBtW4?style=flat" alt="Discord"/></a></p> <p>Official Go SDK for <a href="https://www.deepgram.com/" rel="nofollow">Deepgram</a>. Start building with our powerful transcription & speech understanding API.</p> <ul> <li><a href="#readme-deepgram-go-sdk" rel="nofollow">Deepgram Go SDK</a></li> <li><a href="#readme-sdk-documentation" rel="nofollow">SDK Documentation</a></li> <li><a href="#readme-getting-an-api-key" rel="nofollow">Getting an API Key</a></li> <li><a href="#readme-installation" rel="nofollow">Installation</a></li> <li><a href="#readme-requirements" rel="nofollow">Requirements</a></li> <li><a href="#readme-quickstarts" rel="nofollow">Quickstarts</a> <ul> <li><a href="#readme-speech-to-text-from-livestreaming-audio-quickstart" rel="nofollow">Speech-to-Text WebSocket (from Live/Streaming Audio) Quickstart</a></li> <li><a href="#readme-speech-to-text-from-prerecorded-audio-quickstart" rel="nofollow">Speech-to-Text REST (from PreRecorded Audio) Quickstart</a></li> <li><a href="#readme-text-to-speech-websocket-quickstart" rel="nofollow">Text-to-Speech WebSocket Quickstart</a></li> <li><a href="#readme-text-to-speech-rest-quickstart" rel="nofollow">Text-to-Speech REST Quickstart</a></li> </ul> </li> <li><a href="#readme-examples" rel="nofollow">Examples</a></li> <li><a href="#readme-logging" rel="nofollow">Logging</a></li> <li><a href="#readme-testing" rel="nofollow">Testing</a></li> <li><a href="#readme-backwards-compatibility" rel="nofollow">Backwards Compatability</a></li> <li><a href="#readme-development-and-contributing" rel="nofollow">Development and Contributing</a></li> <li><a href="#readme-getting-help" rel="nofollow">Getting Help</a></li> </ul> <h4 class="h2" id="readme-sdk-documentation">SDK Documentation</h4> <p>This SDK implements the Deepgram API found at <a href="https://developers.deepgram.com" rel="nofollow">https://developers.deepgram.com</a>.</p> <p>Documentation for specifics about the structs, interfaces, and functions of this SDK can be found here: <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main" rel="nofollow">Go SDK Documentation</a></p> <p>For documentation relating to Speech-to-Text from Live/Streaming Audio:</p> <ul> <li>Live Client - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/listen/v1/websocket" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/listen/v1/websocket</a></li> <li>Live API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/websocket" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/websocket</a></li> <li>Live API Interfaces - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/websocket/interfaces" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/websocket/interfaces</a></li> </ul> <p>For documentation relating to Speech-to-Text (and Intelligence) from PreRecorded Audio:</p> <ul> <li>PreRecorded Client - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/listen/v1/rest" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/listen/v1/rest</a></li> <li>PreRecorded API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/rest" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/rest</a></li> <li>PreRecorded API Interfaces - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/rest/interfaces" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/listen/v1/rest/interfaces</a></li> </ul> <p>For documentation relating to Text-to-Speech:</p> <ul> <li> <p>WebSocket:</p> <ul> <li>Speak REST Client - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/speak/v1/websocket" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/speak/v1/websocket</a></li> <li>Speak REST API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/websocket" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/websocket</a></li> <li>Speak API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/websocket/interfaces" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/websocket/interfaces</a></li> </ul> </li> <li> <p>REST:</p> <ul> <li>Speak REST Client - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/speak/v1/rest" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/speak/v1/rest</a></li> <li>Speak REST API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/rest" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/rest</a></li> <li>Speak API Interfaces - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/rest/interfaces" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/speak/v1/rest/interfaces</a></li> </ul> </li> </ul> <p>For documentation relating to Text Intelligence:</p> <ul> <li>Analyze Client - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/analyze/v1" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/client/analyze/v1</a></li> <li>Analyze API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/analyze/v1" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/analyze/v1</a></li> <li>Analyze API Interfaces - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/analyze/v1/interfaces" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/analyze/v1/interfaces</a></li> </ul> <p>For documentation relating to Manage API:</p> <ul> <li>Management Client - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/manage/v1" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/manage/v1</a></li> <li>Manage API - <a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/manage/v1" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/api/manage/v1</a></li> <li>Manage API Interfaces -<a href="https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/manage/v1/interfaces" rel="nofollow">https://pkg.go.dev/github.com/deepgram/deepgram-go-sdk@main/pkg/manage/v1/interfaces</a></li> </ul> <h4 class="h2" id="readme-getting-an-api-key">Getting an API Key</h4> <p>🔑 To access the Deepgram API you will need a <a href="https://console.deepgram.com/signup?jump=keys" rel="nofollow">free Deepgram API Key</a>.</p> <h4 class="h2" id="readme-installation">Installation</h4> <p>To incorporate this SDK into your project's <code>go.mod</code> file, run the following command from your repo:</p> <pre><code>go get github.com/deepgram/deepgram-go-sdk </code></pre> <h4 class="h2" id="readme-requirements">Requirements</h4> <p><a href="https://go.dev/doc/install" rel="nofollow">Go</a> (version ^1.19)</p> <h4 class="h2" id="readme-quickstarts">Quickstarts</h4> <p>This SDK aims to reduce complexity and abtract/hide some internal Deepgram details that clients shouldn't need to know about. However you can still tweak options and settings if you need.</p> <h5 class="h3" id="readme-speech-to-text-from-live-streaming-audio-quickstart">Speech-to-Text from Live/Streaming Audio Quickstart</h5> <p>You can find a <a href="https://developers.deepgram.com/docs/live-streaming-audio-transcription" rel="nofollow">walkthrough</a> on our documentation site. Transcribing Live Audio can be done using the following sample code:</p> <pre><code>// options transcriptOptions := &interfaces.LiveTranscriptionOptions{ Language: "en-US", Punctuate: true, Encoding: "linear16", Channels: 1, Sample_rate: 16000, } // create the client dgClient, err := client.NewWebSocketWithDefaults(ctx, transcriptOptions, callback) if err != nil { log.Println("ERROR creating LiveTranscription connection:", err) os.Exit(1) } // call connect! wsconn := dgClient.Connect() if wsconn == nil { log.Println("Client.Connect failed") os.Exit(1) } </code></pre> <h5 class="h3" id="readme-speech-to-text-from-prerecorded-audio-quickstart">Speech-to-Text from PreRecorded Audio Quickstart</h5> <p>You can find a <a href="https://developers.deepgram.com/docs/pre-recorded-audio-transcription" rel="nofollow">walkthrough</a> on our documentation site. Transcribing Pre-Recorded Audio can be done using the following sample code:</p> <pre><code>// context ctx := context.Background() //client c := client.NewRESTWithDefaults() dg := prerecorded.New(c) // transcription options options := &interfaces.PreRecordedTranscriptionOptions{ Punctuate: true, Diarize: true, Language: "en-US", } // send URL URL := "https://my-domain.com/files/my-conversation.mp3" res, err := dg.FromURL(ctx, URL, options) if err != nil { log.Fatalf("FromURL failed. Err: %v\n", err) os.Exit(1) } </code></pre> <h5 class="h3" id="readme-text-to-speech-websocket-quickstart">Text-to-Speech WebSocket Quickstart</h5> <p>You can find a <a href="https://developers.deepgram.com/docs/live-streaming-audio-transcription" rel="nofollow">walkthrough</a> on our documentation site. Transcribing Live Audio can be done using the following sample code:</p> <pre><code>// set the TTS options ttsOptions := &interfaces.SpeakOptions{ Model: "aura-asteria-en", } // create the callback callback := MyCallback{} // create a new stream using the NewStream function dgClient, err := speak.NewWebSocketWithDefaults(ctx, ttsOptions, callback) if err != nil { fmt.Println("ERROR creating TTS connection:", err) os.Exit(1) } // connect the websocket to Deepgram bConnected := dgClient.Connect() if !bConnected { fmt.Println("Client.Connect failed") os.Exit(1) } </code></pre> <h5 class="h3" id="readme-text-to-speech-rest-quickstart">Text-to-Speech REST Quickstart</h5> <p>You can find a <a href="https://developers.deepgram.com/docs/live-streaming-audio-transcription" rel="nofollow">walkthrough</a> on our documentation site. Transcribing Live Audio can be done using the following sample code:</p> <pre><code>// set the Transcription options options := &interfaces.SpeakOptions{ Model: "aura-asteria-en", } // create a Deepgram client c := client.NewRESTWithDefaults() dg := api.New(c) // send/process file to Deepgram res, err := dg.ToSave(ctx, "Hello, World!", textToSpeech, options) if err != nil { fmt.Printf("FromStream failed. Err: %v\n", err) os.Exit(1) } </code></pre> <h4 class="h2" id="readme-examples">Examples</h4> <p>There are examples for *<em>every</em>- API call in this SDK. You can find all of these examples in the <a href="https://github.com/deepgram/deepgram-go-sdk/tree/main/examples" rel="nofollow">examples folder</a> at the root of this repo.</p> <p>These examples provide:</p> <p>Speech-to-Text - Live Audio / WebSocket:</p> <ul> <li>From a Microphone - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/websocket/microphone/main.go" rel="nofollow">examples/speech-to-text/websocket/microphone</a></li> <li>From an HTTP Endpoint - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/websocket/http/main.go" rel="nofollow">examples/speech-to-text/websocket/http</a></li> </ul> <p>Speech-to-Text - PreRecorded / REST:</p> <ul> <li>From an Audio File - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/rest/file/main.go" rel="nofollow">examples/speech-to-text/rest/file</a></li> <li>From an URL - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/rest/url/main.go" rel="nofollow">examples/speech-to-text/rest/url</a></li> <li>From an Audio Stream - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/rest/stream/main.go" rel="nofollow">examples/speech-to-text/rest/stream</a></li> </ul> <p>Speech-to-Text - Live Audio:</p> <ul> <li>From a Microphone - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/websocket/microphone/main.go" rel="nofollow">examples/speech-to-text/websocket/microphone</a></li> <li>From an HTTP Endpoint - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/speech-to-text/websocket/http/main.go" rel="nofollow">examples/speech-to-text/websocket/http</a></li> </ul> <p>Text-to-Speech - WebSocket</p> <ul> <li>Websocket Simple Example - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/text-to-speech/websocket/simple/main.go" rel="nofollow">examples/text-to-speech/websocket/simple</a></li> <li>Interactive Websocket - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/text-to-speech/websocket/interactive/main.go" rel="nofollow">examples/text-to-speech/websocket/interactive</a></li> </ul> <p>Text-to-Speech - REST</p> <ul> <li>Save audio to a Path - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/text-to-speech/rest/file/main.go" rel="nofollow">examples/text-to-speech/rest/file</a></li> <li>Save audio to a Stream/Buffer - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/text-to-speech/rest/stream/main.go" rel="nofollow">examples/text-to-speech/rest/stream</a></li> <li>Save audio to a user-defined Writer - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/text-to-speech/rest/writer/main.go" rel="nofollow">examples/text-to-speech/rest/writer</a></li> </ul> <p>Management API exercise the full <a href="https://en.wikipedia.org/wiki/Create,_read,_update_and_delete" rel="nofollow">CRUD</a> operations for:</p> <ul> <li> <p>Balances - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/balances/main.go" rel="nofollow">examples/manage/balances</a></p> </li> <li> <p>Invitations - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/invitations/main.go" rel="nofollow">examples/manage/invitations</a></p> </li> <li> <p>Keys - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/keys/main.go" rel="nofollow">examples/manage/keys</a></p> </li> <li> <p>Members - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/members/main.go" rel="nofollow">examples/manage/members</a></p> </li> <li> <p>Models - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/models/main.go" rel="nofollow">examples/manage/models</a></p> </li> <li> <p>Projects - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/projects/main.go" rel="nofollow">examples/manage/projects</a></p> </li> <li> <p>Scopes - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/scopes/main.go" rel="nofollow">examples/manage/scopes</a></p> </li> <li> <p>Usage - <a href="https://github.com/deepgram/deepgram-go-sdk/raw/main/examples/manage/usage/main.go" rel="nofollow">examples/manage/usage</a></p> </li> </ul> <p>To run each example set the <code>DEEPGRAM_API_KEY</code> as an environment variable, then <code>cd</code> into each example folder and execute the example: <code>go run main.go</code>.</p> <h4 class="h2" id="readme-logging">Logging</h4> <p>This SDK provides logging as a means to troubleshoot and debug issues encountered. By default, this SDK will enable <code>Information</code> level messages and higher (ie <code>Warning</code>, <code>Error</code>, etc) when you initialize the library as follows:</p> <pre><code>client.InitWithDefault(); </code></pre> <p>To increase the logging output/verbosity for debug or troubleshooting purposes, you can set the <code>TRACE</code> level but using this code:</p> <pre><code>// init library client.Init(client.InitLib{ LogLevel: client.LogLevelTrace, }) </code></pre> <h4 class="h2" id="readme-testing">Testing</h4> <p>TBD</p> <h4 class="h2" id="readme-backwards-compatibility">Backwards Compatibility</h4> <p>Older SDK versions will receive Priority 1 (P1) bug support only. Security issues, both in our code and dependencies, are promptly addressed. Significant bugs without clear workarounds are also given priority attention.</p> <h4 class="h2" id="readme-development-and-contributing">Development and Contributing</h4> <p>Interested in contributing? We ❤️ pull requests!</p> <p>To make sure our community is safe for all, be sure to review and agree to our <a href="https://github.com/deepgram/deepgram-go-sdk/blob/main/.github/CODE_OF_CONDUCT.md" rel="nofollow">Code of Conduct</a>. Then see the <a href="https://github.com/deepgram/deepgram-go-sdk/blob/main/.github/CONTRIBUTING.md" rel="nofollow">Contribution</a> guidelines for more information.</p> <h5 class="h3" id="readme-getting-help">Getting Help</h5> <p>We love to hear from you so if you have questions, comments or find a bug in the project, let us know! You can either:</p> <ul> <li><a href="https://github.com/deepgram/deepgram-dotnet-sdk/issues/new" rel="nofollow">Open an issue in this repository</a></li> <li><a href="https://github.com/orgs/deepgram/discussions" rel="nofollow">Join the Deepgram Github Discussions Community</a></li> <li><a href="https://discord.gg/xWRaCDBtW4" rel="nofollow">Join the Deepgram Discord Community</a></li> </ul> </div> </div> <button class="UnitReadme-expandLink js-readmeExpand" data-test-id="readme-expand" data-gtmc="readme button" aria-label="Expand Readme">Expand ▾</button> <button class="UnitReadme-collapseLink js-readmeCollapse" data-test-id="readme-collapse" data-gtmc="readme button" aria-label="Expand Readme">Collapse ▴</button> </div> <div class="UnitDoc"> <h2 class="UnitDoc-title" id="section-documentation"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/code_gm_grey_24dp.svg" alt=""> Documentation <a class="UnitDoc-idLink" href="#section-documentation" aria-label="Go to Documentation">¶</a> </h2> <div class="Documentation js-documentation"> <div class="UnitDoc-emptySection"> <img width="1200" height="945" src="/static/shared/gopher/airplane-1200x945.svg" alt="The Go Gopher"/> <p>There is no documentation for this package.</p> </div> </div> </div> <div class="UnitFiles js-unitFiles"> <h2 class="UnitFiles-title" id="section-sourcefiles"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/insert_drive_file_gm_grey_24dp.svg" alt=""> Source Files <a class="UnitFiles-idLink" href="#section-sourcefiles" aria-label="Go to Source Files">¶</a> </h2> <div class="UnitFiles-titleLink"> <a href="https://github.com/deepgram/deepgram-go-sdk/tree/v1.6.2" target="_blank" rel="noopener">View all Source files</a> </div> <div> <ul class="UnitFiles-fileList"><li> <a href="https://github.com/deepgram/deepgram-go-sdk/blob/v1.6.2/docs.go" target="_blank" rel="noopener" title="docs.go">docs.go</a> </li></ul> </div> </div> <div class="UnitDirectories js-unitDirectories"> <h2 class="UnitDirectories-title" id="section-directories"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/folder_gm_grey_24dp.svg" alt=""> Directories <a class="UnitDirectories-idLink" href="#section-directories" aria-label="Go to Directories">¶</a> </h2> <div class="UnitDirectories-toggles"> <div class="UnitDirectories-toggleButtons"> <button class="js-showInternalDirectories" data-test-id="internal-directories-toggle" data-gtmc="directories button" aria-label="Show Internal Directories"> Show internal </button> <button class="js-expandAllDirectories" data-test-id="directories-toggle" data-gtmc="directories button" aria-label="Expand All Directories"> Expand all </button> </div> </div> <table class="UnitDirectories-table UnitDirectories-table--tree js-expandableTable" data-test-id="UnitDirectories-table"> <tr class="UnitDirectories-tableHeader UnitDirectories-tableHeader--tree"> <th>Path</th> <th class="UnitDirectories-desktopSynopsis">Synopsis</th> </tr> <tr data-aria-controls="examples-analyze/intent examples-analyze/sentiment examples-analyze/summary examples-analyze/topic examples-manage/balances examples-manage/invitations examples-manage/keys examples-manage/members examples-manage/models examples-manage/projects examples-manage/scopes examples-manage/usage examples-speech-to-text/rest/callback/callback examples-speech-to-text/rest/file examples-speech-to-text/rest/intent examples-speech-to-text/rest/sentiment examples-speech-to-text/rest/stream examples-speech-to-text/rest/summary examples-speech-to-text/rest/topic examples-speech-to-text/rest/url examples-speech-to-text/websocket/http_callback examples-speech-to-text/websocket/http_channel examples-speech-to-text/websocket/microphone_callback examples-speech-to-text/websocket/microphone_channel examples-speech-to-text/websocket/replay examples-speech-to-text/websocket/test examples-text-to-speech/rest/file/hello-world examples-text-to-speech/rest/file/woodchuck examples-text-to-speech/rest/stream/hello-world examples-text-to-speech/rest/stream/woodchuck examples-text-to-speech/rest/writer/hello-world examples-text-to-speech/rest/writer/woodchuck examples-text-to-speech/websocket/interactive_callback examples-text-to-speech/websocket/interactive_channel examples-text-to-speech/websocket/simple_callback examples-text-to-speech/websocket/simple_channel " class=""> <td data-id="examples" data-aria-owns="examples-analyze/intent examples-analyze/sentiment examples-analyze/summary examples-analyze/topic examples-manage/balances examples-manage/invitations examples-manage/keys examples-manage/members examples-manage/models examples-manage/projects examples-manage/scopes examples-manage/usage examples-speech-to-text/rest/callback/callback examples-speech-to-text/rest/file examples-speech-to-text/rest/intent examples-speech-to-text/rest/sentiment examples-speech-to-text/rest/stream examples-speech-to-text/rest/summary examples-speech-to-text/rest/topic examples-speech-to-text/rest/url examples-speech-to-text/websocket/http_callback examples-speech-to-text/websocket/http_channel examples-speech-to-text/websocket/microphone_callback examples-speech-to-text/websocket/microphone_channel examples-speech-to-text/websocket/replay examples-speech-to-text/websocket/test examples-text-to-speech/rest/file/hello-world examples-text-to-speech/rest/file/woodchuck examples-text-to-speech/rest/stream/hello-world examples-text-to-speech/rest/stream/woodchuck examples-text-to-speech/rest/writer/hello-world examples-text-to-speech/rest/writer/woodchuck examples-text-to-speech/websocket/interactive_callback examples-text-to-speech/websocket/interactive_channel examples-text-to-speech/websocket/simple_callback examples-text-to-speech/websocket/simple_channel "> <div class="UnitDirectories-pathCell"> <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="36 more from" data-aria-controls="examples-analyze/intent examples-analyze/sentiment examples-analyze/summary examples-analyze/topic examples-manage/balances examples-manage/invitations examples-manage/keys examples-manage/members examples-manage/models examples-manage/projects examples-manage/scopes examples-manage/usage examples-speech-to-text/rest/callback/callback examples-speech-to-text/rest/file examples-speech-to-text/rest/intent examples-speech-to-text/rest/sentiment examples-speech-to-text/rest/stream examples-speech-to-text/rest/summary examples-speech-to-text/rest/topic examples-speech-to-text/rest/url examples-speech-to-text/websocket/http_callback examples-speech-to-text/websocket/http_channel examples-speech-to-text/websocket/microphone_callback examples-speech-to-text/websocket/microphone_channel examples-speech-to-text/websocket/replay examples-speech-to-text/websocket/test examples-text-to-speech/rest/file/hello-world examples-text-to-speech/rest/file/woodchuck examples-text-to-speech/rest/stream/hello-world examples-text-to-speech/rest/stream/woodchuck examples-text-to-speech/rest/writer/hello-world examples-text-to-speech/rest/writer/woodchuck examples-text-to-speech/websocket/interactive_callback examples-text-to-speech/websocket/interactive_channel examples-text-to-speech/websocket/simple_callback examples-text-to-speech/websocket/simple_channel " data-aria-labelledby="examples-button examples" data-id="examples-button"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_right_gm_grey_24dp.svg" alt=""> </button><span>examples</span> </td> <td class="UnitDirectories-desktopSynopsis"></td></tr><tr data-id="examples-analyze/intent" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/analyze/intent">analyze/intent</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-analyze/sentiment" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/analyze/sentiment">analyze/sentiment</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-analyze/summary" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/analyze/summary">analyze/summary</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-analyze/topic" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/analyze/topic">analyze/topic</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/balances" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/balances">manage/balances</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/invitations" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/invitations">manage/invitations</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/keys" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/keys">manage/keys</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/members" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/members">manage/members</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/models" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/models">manage/models</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/projects" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/projects">manage/projects</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/scopes" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/scopes">manage/scopes</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-manage/usage" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/manage/usage">manage/usage</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/callback/callback" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/callback/callback">speech-to-text/rest/callback/callback</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/file" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/file">speech-to-text/rest/file</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/intent" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/intent">speech-to-text/rest/intent</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/sentiment" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/sentiment">speech-to-text/rest/sentiment</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/stream" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/stream">speech-to-text/rest/stream</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/summary" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/summary">speech-to-text/rest/summary</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/topic" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/topic">speech-to-text/rest/topic</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/rest/url" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/rest/url">speech-to-text/rest/url</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/websocket/http_callback" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/websocket/http_callback">speech-to-text/websocket/http_callback</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/websocket/http_channel" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/websocket/http_channel">speech-to-text/websocket/http_channel</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/websocket/microphone_callback" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/websocket/microphone_callback">speech-to-text/websocket/microphone_callback</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/websocket/microphone_channel" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/websocket/microphone_channel">speech-to-text/websocket/microphone_channel</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/websocket/replay" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/websocket/replay">speech-to-text/websocket/replay</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-speech-to-text/websocket/test" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/speech-to-text/websocket/test">speech-to-text/websocket/test</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/rest/file/hello-world" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/rest/file/hello-world">text-to-speech/rest/file/hello-world</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/rest/file/woodchuck" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/rest/file/woodchuck">text-to-speech/rest/file/woodchuck</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/rest/stream/hello-world" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/rest/stream/hello-world">text-to-speech/rest/stream/hello-world</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/rest/stream/woodchuck" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/rest/stream/woodchuck">text-to-speech/rest/stream/woodchuck</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/rest/writer/hello-world" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/rest/writer/hello-world">text-to-speech/rest/writer/hello-world</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/rest/writer/woodchuck" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/rest/writer/woodchuck">text-to-speech/rest/writer/woodchuck</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/websocket/interactive_callback" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/websocket/interactive_callback">text-to-speech/websocket/interactive_callback</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/websocket/interactive_channel" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/websocket/interactive_channel">text-to-speech/websocket/interactive_channel</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/websocket/simple_callback" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/websocket/simple_callback">text-to-speech/websocket/simple_callback</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="examples-text-to-speech/websocket/simple_channel" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/examples/text-to-speech/websocket/simple_channel">text-to-speech/websocket/simple_channel</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td></tr> <tr data-aria-controls="pkg-api/analyze/v1 pkg-api/analyze/v1/interfaces pkg-api/listen/v1/rest pkg-api/listen/v1/rest/interfaces pkg-api/listen/v1/websocket pkg-api/listen/v1/websocket/interfaces pkg-api/live/v1 pkg-api/live/v1/interfaces pkg-api/manage/v1 pkg-api/manage/v1/interfaces pkg-api/prerecorded/v1 pkg-api/prerecorded/v1/interfaces pkg-api/speak/v1 pkg-api/speak/v1/rest pkg-api/speak/v1/rest/interfaces pkg-api/speak/v1/websocket pkg-api/speak/v1/websocket/interfaces pkg-api/version pkg-audio/common pkg-audio/microphone pkg-audio/microphone/interfaces pkg-audio/replay pkg-client/analyze pkg-client/analyze/v1 pkg-client/common/v1 pkg-client/common/v1/interfaces pkg-client/interfaces pkg-client/interfaces/v1 pkg-client/listen pkg-client/listen/v1/rest pkg-client/listen/v1/websocket pkg-client/live pkg-client/manage pkg-client/manage/v1 pkg-client/prerecorded pkg-client/rest pkg-client/rest/v1 pkg-client/rest/v1/debug pkg-client/speak pkg-client/speak/v1/rest pkg-client/speak/v1/websocket pkg-common " class=""> <td data-id="pkg" data-aria-owns="pkg-api/analyze/v1 pkg-api/analyze/v1/interfaces pkg-api/listen/v1/rest pkg-api/listen/v1/rest/interfaces pkg-api/listen/v1/websocket pkg-api/listen/v1/websocket/interfaces pkg-api/live/v1 pkg-api/live/v1/interfaces pkg-api/manage/v1 pkg-api/manage/v1/interfaces pkg-api/prerecorded/v1 pkg-api/prerecorded/v1/interfaces pkg-api/speak/v1 pkg-api/speak/v1/rest pkg-api/speak/v1/rest/interfaces pkg-api/speak/v1/websocket pkg-api/speak/v1/websocket/interfaces pkg-api/version pkg-audio/common pkg-audio/microphone pkg-audio/microphone/interfaces pkg-audio/replay pkg-client/analyze pkg-client/analyze/v1 pkg-client/common/v1 pkg-client/common/v1/interfaces pkg-client/interfaces pkg-client/interfaces/v1 pkg-client/listen pkg-client/listen/v1/rest pkg-client/listen/v1/websocket pkg-client/live pkg-client/manage pkg-client/manage/v1 pkg-client/prerecorded pkg-client/rest pkg-client/rest/v1 pkg-client/rest/v1/debug pkg-client/speak pkg-client/speak/v1/rest pkg-client/speak/v1/websocket pkg-common "> <div class="UnitDirectories-pathCell"> <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="42 more from" data-aria-controls="pkg-api/analyze/v1 pkg-api/analyze/v1/interfaces pkg-api/listen/v1/rest pkg-api/listen/v1/rest/interfaces pkg-api/listen/v1/websocket pkg-api/listen/v1/websocket/interfaces pkg-api/live/v1 pkg-api/live/v1/interfaces pkg-api/manage/v1 pkg-api/manage/v1/interfaces pkg-api/prerecorded/v1 pkg-api/prerecorded/v1/interfaces pkg-api/speak/v1 pkg-api/speak/v1/rest pkg-api/speak/v1/rest/interfaces pkg-api/speak/v1/websocket pkg-api/speak/v1/websocket/interfaces pkg-api/version pkg-audio/common pkg-audio/microphone pkg-audio/microphone/interfaces pkg-audio/replay pkg-client/analyze pkg-client/analyze/v1 pkg-client/common/v1 pkg-client/common/v1/interfaces pkg-client/interfaces pkg-client/interfaces/v1 pkg-client/listen pkg-client/listen/v1/rest pkg-client/listen/v1/websocket pkg-client/live pkg-client/manage pkg-client/manage/v1 pkg-client/prerecorded pkg-client/rest pkg-client/rest/v1 pkg-client/rest/v1/debug pkg-client/speak pkg-client/speak/v1/rest pkg-client/speak/v1/websocket pkg-common " data-aria-labelledby="pkg-button pkg" data-id="pkg-button"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_right_gm_grey_24dp.svg" alt=""> </button><span>pkg</span> </td> <td class="UnitDirectories-desktopSynopsis"></td></tr><tr data-id="pkg-api/analyze/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/analyze/v1">api/analyze/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">This package defines the Analyze API for Deepgram</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package defines the Analyze API for Deepgram</td><tr data-id="pkg-api/analyze/v1/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/analyze/v1/interfaces">api/analyze/v1/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="pkg-api/listen/v1/rest" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/listen/v1/rest">api/listen/v1/rest</a> </span> <div class="UnitDirectories-mobileSynopsis">This package defines the Pre-recorded API for Deepgram</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package defines the Pre-recorded API for Deepgram</td><tr data-id="pkg-api/listen/v1/rest/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/listen/v1/rest/interfaces">api/listen/v1/rest/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the types for the Deepgram PreRecorded API.</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the types for the Deepgram PreRecorded API.</td><tr data-id="pkg-api/listen/v1/websocket" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/listen/v1/websocket">api/listen/v1/websocket</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="pkg-api/listen/v1/websocket/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/listen/v1/websocket/interfaces">api/listen/v1/websocket/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">This package defines interfaces for the live API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package defines interfaces for the live API</td><tr data-id="pkg-api/live/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/live/v1">api/live/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package provides the Live API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package provides the Live API</td><tr data-id="pkg-api/live/v1/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/live/v1/interfaces">api/live/v1/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package defines interfaces for the live API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package defines interfaces for the live API</td><tr data-id="pkg-api/manage/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/manage/v1">api/manage/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">Balances API: https://developers.deepgram.com/reference/get-all-balances https://developers.deepgram.com/reference/get-balance</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">Balances API: https://developers.deepgram.com/reference/get-all-balances https://developers.deepgram.com/reference/get-balance</td><tr data-id="pkg-api/manage/v1/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/manage/v1/interfaces">api/manage/v1/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the types for the Deepgram Manage API.</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the types for the Deepgram Manage API.</td><tr data-id="pkg-api/prerecorded/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/prerecorded/v1">api/prerecorded/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package provides the PreRecorded API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package provides the PreRecorded API</td><tr data-id="pkg-api/prerecorded/v1/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/prerecorded/v1/interfaces">api/prerecorded/v1/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the types for the Deepgram PreRecorded API.</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the types for the Deepgram PreRecorded API.</td><tr data-id="pkg-api/speak/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/speak/v1">api/speak/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package provides the API for Speak on a REST interface</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package provides the API for Speak on a REST interface</td><tr data-id="pkg-api/speak/v1/rest" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/speak/v1/rest">api/speak/v1/rest</a> </span> <div class="UnitDirectories-mobileSynopsis">This package defines the Speak REST API for Deepgram</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package defines the Speak REST API for Deepgram</td><tr data-id="pkg-api/speak/v1/rest/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/speak/v1/rest/interfaces">api/speak/v1/rest/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="pkg-api/speak/v1/websocket" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/speak/v1/websocket">api/speak/v1/websocket</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="pkg-api/speak/v1/websocket/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/speak/v1/websocket/interfaces">api/speak/v1/websocket/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">This package defines interfaces for the live API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package defines interfaces for the live API</td><tr data-id="pkg-api/version" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/api/version">api/version</a> </span> <div class="UnitDirectories-mobileSynopsis">This package handles the versioning in the API for the various clients (prerecorded, live, etc.)</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package handles the versioning in the API for the various clients (prerecorded, live, etc.)</td><tr data-id="pkg-audio/common" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/audio/common">audio/common</a> </span> <div class="UnitDirectories-mobileSynopsis">Implementation of a common functions used in portaudio</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">Implementation of a common functions used in portaudio</td><tr data-id="pkg-audio/microphone" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/audio/microphone">audio/microphone</a> </span> <div class="UnitDirectories-mobileSynopsis">Implementation of a microphone using portaudio</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">Implementation of a microphone using portaudio</td><tr data-id="pkg-audio/microphone/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/audio/microphone/interfaces">audio/microphone/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">Microphone defines a interface for a Microphone implementation</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">Microphone defines a interface for a Microphone implementation</td><tr data-id="pkg-audio/replay" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/audio/replay">audio/replay</a> </span> <div class="UnitDirectories-mobileSynopsis">Implementation for a replay device.</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">Implementation for a replay device.</td><tr data-id="pkg-client/analyze" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/analyze">client/analyze</a> </span> <div class="UnitDirectories-mobileSynopsis">This package points to the latest version of the analyze/read client</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package points to the latest version of the analyze/read client</td><tr data-id="pkg-client/analyze/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/analyze/v1">client/analyze/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the analyze/read client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the analyze/read client implementation for the Deepgram API</td><tr data-id="pkg-client/common/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/common/v1">client/common/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the live/streaming client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the live/streaming client implementation for the Deepgram API</td><tr data-id="pkg-client/common/v1/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/common/v1/interfaces">client/common/v1/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis">This package defines interfaces for the live API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package defines interfaces for the live API</td><tr data-id="pkg-client/interfaces" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/interfaces">client/interfaces</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="pkg-client/interfaces/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/interfaces/v1">client/interfaces/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">This package contains the interface to manage the prerecorded and live/stream interfaces for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package contains the interface to manage the prerecorded and live/stream interfaces for the Deepgram API</td><tr data-id="pkg-client/listen" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/listen">client/listen</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the prerecorded client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the prerecorded client implementation for the Deepgram API</td><tr data-id="pkg-client/listen/v1/rest" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/listen/v1/rest">client/listen/v1/rest</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the prerecorded client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the prerecorded client implementation for the Deepgram API</td><tr data-id="pkg-client/listen/v1/websocket" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/listen/v1/websocket">client/listen/v1/websocket</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the live/streaming client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the live/streaming client implementation for the Deepgram API</td><tr data-id="pkg-client/live" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/live">client/live</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package provides the live client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package provides the live client implementation for the Deepgram API</td><tr data-id="pkg-client/manage" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/manage">client/manage</a> </span> <div class="UnitDirectories-mobileSynopsis">This package contains the code for the Keys APIs in the Deepgram Manage API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package contains the code for the Keys APIs in the Deepgram Manage API</td><tr data-id="pkg-client/manage/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/manage/v1">client/manage/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">This package contains the code for the Keys APIs in the Deepgram Manage API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package contains the code for the Keys APIs in the Deepgram Manage API</td><tr data-id="pkg-client/prerecorded" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/prerecorded">client/prerecorded</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package provides the prerecorded client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package provides the prerecorded client implementation for the Deepgram API</td><tr data-id="pkg-client/rest" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/rest">client/rest</a> </span> <div class="UnitDirectories-mobileSynopsis">*********** WARNING *********** This package provides a generic reusable REST client</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">*********** WARNING *********** This package provides a generic reusable REST client</td><tr data-id="pkg-client/rest/v1" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/rest/v1">client/rest/v1</a> </span> <div class="UnitDirectories-mobileSynopsis">This package implements a reusable REST client</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package implements a reusable REST client</td><tr data-id="pkg-client/rest/v1/debug" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/rest/v1/debug">client/rest/v1/debug</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides API debugging at the REST/HTTP level</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides API debugging at the REST/HTTP level</td><tr data-id="pkg-client/speak" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/speak">client/speak</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the speak client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the speak client implementation for the Deepgram API</td><tr data-id="pkg-client/speak/v1/rest" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/speak/v1/rest">client/speak/v1/rest</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the speak client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the speak client implementation for the Deepgram API</td><tr data-id="pkg-client/speak/v1/websocket" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/client/speak/v1/websocket">client/speak/v1/websocket</a> </span> <div class="UnitDirectories-mobileSynopsis">This package provides the speak/streaming client implementation for the Deepgram API</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package provides the speak/streaming client implementation for the Deepgram API</td><tr data-id="pkg-common" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/pkg/common">common</a> </span> <div class="UnitDirectories-mobileSynopsis">This package contains the initialization code for the Deepgram Go SDK</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">This package contains the initialization code for the Deepgram Go SDK</td></tr> <tr data-aria-controls="tests-edge_cases/cancel tests-edge_cases/failed_retry tests-edge_cases/keepalive tests-edge_cases/reconnect_client tests-edge_cases/timeout tests-unit_test tests-utils " class=""> <td data-id="tests" data-aria-owns="tests-edge_cases/cancel tests-edge_cases/failed_retry tests-edge_cases/keepalive tests-edge_cases/reconnect_client tests-edge_cases/timeout tests-unit_test tests-utils "> <div class="UnitDirectories-pathCell"> <div><button type="button" class="go-Button go-Button--inline UnitDirectories-toggleButton" aria-expanded="false" aria-label="7 more from" data-aria-controls="tests-edge_cases/cancel tests-edge_cases/failed_retry tests-edge_cases/keepalive tests-edge_cases/reconnect_client tests-edge_cases/timeout tests-unit_test tests-utils " data-aria-labelledby="tests-button tests" data-id="tests-button"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_right_gm_grey_24dp.svg" alt=""> </button><span>tests</span> </td> <td class="UnitDirectories-desktopSynopsis"></td></tr><tr data-id="tests-edge_cases/cancel" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/edge_cases/cancel">edge_cases/cancel</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="tests-edge_cases/failed_retry" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/edge_cases/failed_retry">edge_cases/failed_retry</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="tests-edge_cases/keepalive" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/edge_cases/keepalive">edge_cases/keepalive</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="tests-edge_cases/reconnect_client" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/edge_cases/reconnect_client">edge_cases/reconnect_client</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="tests-edge_cases/timeout" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/edge_cases/timeout">edge_cases/timeout</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="tests-unit_test" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/unit_test">unit_test</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td><tr data-id="tests-utils" class=""> <td> <div class="UnitDirectories-subdirectory"> <span> <a href="/github.com/deepgram/deepgram-go-sdk@v1.6.2/tests/utils">utils</a> </span> <div class="UnitDirectories-mobileSynopsis"></div> </div> </td> <td class="UnitDirectories-desktopSynopsis"></td></tr> </table> </div> </div> </div> <div id="showInternal-description" hidden> Click to show internal directories. </div> <div id="hideInternal-description" hidden> Click to hide internal directories. </div> </article> <footer class="go-Main-footer"></footer> </main> <footer class="go-Footer"> <div class="go-Footer-links"> <div class="go-Footer-linkColumn"> <a href="https://go.dev/solutions" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Why Go </a> <a href="https://go.dev/solutions#use-cases" class="go-Footer-link" data-gtmc="footer link"> Use Cases </a> <a href="https://go.dev/solutions#case-studies" class="go-Footer-link" data-gtmc="footer link"> Case Studies </a> </div> <div class="go-Footer-linkColumn"> <a href="https://learn.go.dev/" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Get Started </a> <a href="https://play.golang.org" class="go-Footer-link" data-gtmc="footer link"> Playground </a> <a href="https://tour.golang.org" class="go-Footer-link" data-gtmc="footer link"> Tour </a> <a href="https://stackoverflow.com/questions/tagged/go?tab=Newest" class="go-Footer-link" data-gtmc="footer link"> Stack Overflow </a> <a href="https://go.dev/help" class="go-Footer-link" data-gtmc="footer link"> Help </a> </div> <div class="go-Footer-linkColumn"> <a href="https://pkg.go.dev" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Packages </a> <a href="/std" class="go-Footer-link" data-gtmc="footer link"> Standard Library </a> <a href="/golang.org/x" class="go-Footer-link" data-gtmc="footer link"> Sub-repositories </a> <a href="https://pkg.go.dev/about" class="go-Footer-link" data-gtmc="footer link"> About Go Packages </a> </div> <div class="go-Footer-linkColumn"> <a href="https://go.dev/project" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> About </a> <a href="https://go.dev/dl/" class="go-Footer-link" data-gtmc="footer link">Download</a> <a href="https://go.dev/blog" class="go-Footer-link" data-gtmc="footer link">Blog</a> <a href="https://github.com/golang/go/issues" class="go-Footer-link" data-gtmc="footer link"> Issue Tracker </a> <a href="https://go.dev/doc/devel/release.html" class="go-Footer-link" data-gtmc="footer link"> Release Notes </a> <a href="https://blog.golang.org/go-brand" class="go-Footer-link" data-gtmc="footer link"> Brand Guidelines </a> <a href="https://go.dev/conduct" class="go-Footer-link" data-gtmc="footer link"> Code of Conduct </a> </div> <div class="go-Footer-linkColumn"> <a href="https://www.twitter.com/golang" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Connect </a> <a href="https://www.twitter.com/golang" class="go-Footer-link" data-gtmc="footer link"> Twitter </a> <a href="https://github.com/golang" class="go-Footer-link" data-gtmc="footer link">GitHub</a> <a href="https://invite.slack.golangbridge.org/" class="go-Footer-link" data-gtmc="footer link"> Slack </a> <a href="https://reddit.com/r/golang" class="go-Footer-link" data-gtmc="footer link"> r/golang </a> <a href="https://www.meetup.com/pro/go" class="go-Footer-link" data-gtmc="footer link"> Meetup </a> <a href="https://golangweekly.com/" class="go-Footer-link" data-gtmc="footer link"> Golang Weekly </a> </div> </div> <div class="go-Footer-bottom"> <img class="go-Footer-gopher" width="1431" height="901" src="/static/shared/gopher/pilot-bust-1431x901.svg" alt="Gopher in flight goggles"> <ul class="go-Footer-listRow"> <li class="go-Footer-listItem"> <a href="https://go.dev/copyright" data-gtmc="footer link">Copyright</a> </li> <li class="go-Footer-listItem"> <a href="https://go.dev/tos" data-gtmc="footer link">Terms of Service</a> </li> <li class="go-Footer-listItem"> <a href="http://www.google.com/intl/en/policies/privacy/" data-gtmc="footer link" target="_blank" rel="noopener"> Privacy Policy </a> </li> <li class="go-Footer-listItem"> <a href="https://go.dev/s/pkgsite-feedback" target="_blank" rel="noopener" data-gtmc="footer link"> Report an Issue </a> </li> <li class="go-Footer-listItem"> <button class="go-Button go-Button--text go-Footer-toggleTheme js-toggleTheme" aria-label="Theme Toggle"> <img data-value="auto" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/brightness_6_gm_grey_24dp.svg" alt="System theme"> <img data-value="dark" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/brightness_2_gm_grey_24dp.svg" alt="Dark theme"> <img data-value="light" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/light_mode_gm_grey_24dp.svg" alt="Light theme"> <p> Theme Toggle </p> </button> </li> <li class="go-Footer-listItem"> <button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Shorcuts Modal"> <img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/keyboard_grey_24dp.svg" alt=""> <p> Shortcuts Modal </p> </button> </li> </ul> <a class="go-Footer-googleLogo" href="https://google.com" target="_blank"rel="noopener" data-gtmc="footer link"> <img class="go-Footer-googleLogoImg" height="24" width="72" src="/static/shared/logo/google-white.svg" alt="Google logo"> </a> </div> </footer> <dialog id="jump-to-modal" class="JumpDialog go-Modal go-Modal--md js-modal"> <form method="dialog" data-gmtc="jump to form" aria-label="Jump to Identifier"> <div class="Dialog-title go-Modal-header"> <h2>Jump to</h2> <button class="go-Button go-Button--inline" type="button" data-modal-close data-gtmc="modal button" aria-label="Close" > <img class="go-Icon" height="24" width="24" src="/static/shared/icon/close_gm_grey_24dp.svg" alt="" /> </button> </div> <div class="JumpDialog-filter"> <input class="JumpDialog-input go-Input" autocomplete="off" type="text"> </div> <div class="JumpDialog-body go-Modal-body"> <div class="JumpDialog-list"></div> </div> <div class="go-Modal-actions"> <button class="go-Button" data-test-id="close-dialog">Close</button> </div> </form> </dialog> <dialog class="ShortcutsDialog go-Modal go-Modal--sm js-modal"> <form method="dialog"> <div class="go-Modal-header"> <h2>Keyboard shortcuts</h2> <button class="go-Button go-Button--inline" type="button" data-modal-close data-gtmc="modal button" aria-label="Close" > <img class="go-Icon" height="24" width="24" src="/static/shared/icon/close_gm_grey_24dp.svg" alt="" /> </button> </div> <div class="go-Modal-body"> <table> <tbody> <tr><td class="ShortcutsDialog-key"> <strong>?</strong></td><td> : This menu</td> </tr> <tr><td class="ShortcutsDialog-key"> <strong>/</strong></td><td> : Search site</td> </tr> <tr><td class="ShortcutsDialog-key"> <strong>f</strong> or <strong>F</strong></td><td> : Jump to</td> </tr> <tr> <td class="ShortcutsDialog-key"><strong>y</strong> or <strong>Y</strong></td> <td> : Canonical URL</td> </tr> </tbody> </table> </div> <div class="go-Modal-actions"> <button class="go-Button" data-test-id="close-dialog">Close</button> </div> </form> </dialog> <section class="Cookie-notice js-cookieNotice"> <div>go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic. <a target=_blank href="https://policies.google.com/technologies/cookies">Learn more.</a></div> <div><button class="go-Button">Okay</button></div> </section> <script> // this will throw if the querySelector can’t find the element const gtmId = document.querySelector('.js-gtmID').dataset.gtmid; if (!gtmId) { throw new Error('Google Tag Manager ID not found'); } loadScript(`https://www.googletagmanager.com/gtm.js?id=${gtmId}`); </script> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W8MVQXG" height="0" width="0" style="display:none;visibility:hidden"> </iframe> </noscript> <div class="js-canonicalURLPath" data-canonical-url-path="/github.com/deepgram/deepgram-go-sdk@v1.6.2" hidden></div> <div class="js-playgroundVars" data-modulepath="github.com/deepgram/deepgram-go-sdk" data-version="v1.6.2" hidden></div> <script> loadScript('/static/frontend/unit/main/main.js') </script> <script> loadScript('/static/frontend/unit/unit.js') </script> </body> </html>