Skip to main content
Deepgram's Docs

Search documentation

Type to search this documentation.

On this pageOverview

Text Intelligence Commands

Shell
dg read "Customer called about a billing issue."
Shell
dg read --file document.txt
Shell
cat transcript.txt | dg read
echo "Your text here" | dg read
Shell
dg read --file document.txt --sentiment

Output includes overall document sentiment and its score.

Shell
dg read --file document.txt --topics

Returns detected topics with confidence scores.

Shell
dg read --file document.txt --summarize

Generates a brief summary of the content.

Shell
dg read --file document.txt --intents

Detects user intents within the text.

Shell
dg read --file document.txt --sentiment --topics --summarize --intents
Shell
dg -o json read --file document.txt    # JSON
dg -o yaml read --file document.txt    # YAML
dg -o table read --file document.txt   # Formatted terminal table
dg -o csv read --file document.txt     # CSV

-o belongs to dg itself, so it goes before the subcommand name. Without it, dg read prints human-readable output.

Shell
dg listen meeting.mp3 | dg read --summarize
Shell
dg read --file feedback.txt --sentiment --topics
Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu