Detail Screens

1 component in this section

Code Block

Preformatted code/text display with scrolling

<div class="dg-code-block">
  <pre>const dg = new Deepgram(apiKey);
  const response = await dg.transcription.preRecorded(
    { url: audioUrl },
    { model: 'nova-3' }
  );</pre>
</div>
import { CodeBlock } from '@deepgram/styles/react';

<CodeBlock>
  <pre>const dg = new Deepgram(apiKey);
  const response = await dg.transcription.preRecorded(
    {'{'} url: audioUrl {'}'},
    {'{'} model: 'nova-3' {'}'}
  );</pre>
</CodeBlock>
<script type="module">
  import '@deepgram/styles/wc';
</script>

<dg-code-block>
  <pre>const dg = new Deepgram(apiKey);
  const response = await dg.transcription.preRecorded(
    { url: audioUrl },
    { model: 'nova-3' }
  );</pre>
</dg-code-block>