Writes and reviews Java code calling Deepgram Speech-to-Text v1 (`/v1/listen`) for prerecorded or live transcription via REST or WebSocket.
Ships in deepgram-java-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Basic transcription for prerecorded audio over REST or live audio over WebSocket via /v1/listen.
media().transcribeUrl / transcribeFile) — one-shot transcription of a complete URL or byte array.v1WebSocket()) — live streaming transcription with interim/final results.Use a different skill when:
deepgram-java-audio-intelligence./v2/listen → deepgram-java-conversational-stt.deepgram-java-voice-agent.Gradle
implementation 'com.deepgram:deepgram-java-sdk:0.2.1'
Maven
<dependency>
<groupId>com.deepgram</groupId>
<artifactId>deepgram-java-sdk</artifactId>
<version>0.2.1</version>
</dependency>
import com.deepgram.DeepgramClient;
DeepgramClient client = DeepgramClient.builder()
.apiKey(System.getenv("DEEPGRAM_API_KEY"))
.build();
Default API-key auth sends Authorization: Token <apiKey>. accessToken(...) switches to Bearer.
import com.deepgram.resources.listen.v1.media.requests.ListenV1RequestUrl;
import com.deepgram.resources.listen.v1.media.types.MediaTranscribeRequestModel;
import com.deepgram.resources.listen.v1.media.types.MediaTranscribeResponse;
import com.deepgram.types.ListenV1Response;
ListenV1RequestUrl request = ListenV1RequestUrl.builder()
.url("https://static.deepgram.com/examples/Bueller-Life-moves-pretty-fast.wav")
.model(MediaTranscribeRequestModel.NOVA3)
.smartFormat(true)
.build();
MediaTranscribeResponse result = client.listen().v1().media().transcribeUrl(request);
result.visit(new MediaTranscribeResponse.Visitor<Void>() {
@Override
public Void visit(ListenV1Response response) {
// Guard channels + alternatives against empty results (matches examples/listen/TranscribeUrl.java).
String transcript = "";
java.util.List<?> channels = response.getResults().getChannels();
if (channels != null && !channels.isEmpty()) {
java.util.List<?> alternatives = response.getResults()
.getChannels().get(0)
.getAlternatives().orElse(java.util.Collections.emptyList());
if (!alternatives.isEmpty()) {
transcript = response.getResults()
.getChannels().get(0)
.getAlternatives().orElse(java.util.Collections.emptyList())
.get(0)
.getTranscript().orElse("");
}
}
System.out.println(transcript);
return null;
}
@Override
public Void visit(com.deepgram.types.ListenV1AcceptedResponse accepted) {
System.out.println("Request accepted: " + accepted.getRequestId());
return null;
}
});
import com.deepgram.resources.listen.v1.media.requests.MediaTranscribeRequestOctetStream;
import com.deepgram.resources.listen.v1.media.types.MediaTranscribeRequestModel;
byte[] audioBytes = java.nio.file.Files.readAllBytes(java.nio.file.Paths.get("audio.wav"));
MediaTranscribeRequestOctetStream request = MediaTranscribeRequestOctetStream.builder()
.body(audioBytes)
.model(MediaTranscribeRequestModel.NOVA3)
.smartFormat(true)
.build();
MediaTranscribeResponse result = client.listen().v1().media().transcribeFile(request);
transcribeFile(...) accepts either raw byte[] or a full MediaTranscribeRequestOctetStream request object.
import com.deepgram.resources.listen.v1.types.ListenV1CloseStream;
import com.deepgram.resources.listen.v1.types.ListenV1CloseStreamType;
import com.deepgram.resources.listen.v1.websocket.V1ConnectOptions;
import com.deepgram.resources.listen.v1.websocket.V1WebSocketClient;
import com.deepgram.types.ListenV1Model;
import java.util.concurrent.TimeUnit;
V1WebSocketClient wsClient = client.listen().v1().v1WebSocket();
wsClient.onResults(result -> {
if (result.getChannel() != null
&& result.getChannel().getAlternatives() != null
&& !result.getChannel().getAlternatives().isEmpty()) {
String transcript = result.getChannel().getAlternatives().get(0).getTranscript();
boolean isFinal = result.getIsFinal().orElse(false);
System.out.printf("%s %s%n", isFinal ? "[final]" : "[interim]", transcript);
}
});
wsClient.connect(V1ConnectOptions.builder().model(ListenV1Model.NOVA3).build())
.get(10, TimeUnit.SECONDS);
// send raw audio chunks here
// wsClient.sendMedia(okio.ByteString.of(audioChunk));
wsClient.sendCloseStream(ListenV1CloseStream.builder()
.type(ListenV1CloseStreamType.CLOSE_STREAM)
.build());
import com.deepgram.AsyncDeepgramClient;
import java.util.concurrent.CompletableFuture;
AsyncDeepgramClient asyncClient = AsyncDeepgramClient.builder()
.apiKey(System.getenv("DEEPGRAM_API_KEY"))
.build();
CompletableFuture<com.deepgram.resources.listen.v1.media.types.MediaTranscribeResponse> future =
asyncClient.listen().v1().media().transcribeUrl(request);
The async REST clients return CompletableFuture<T>. WebSocket clients are already asynchronous and also return CompletableFuture<Void> from connect(...) and send methods.
ListenV1RequestUrl.builder() and MediaTranscribeRequestOctetStream.builder()model, language, encoding, smartFormat, punctuate, diarize, detectEntities, multichannel, numerals, paragraphs, utterances, keywords, keyterm, replace, search, mipOptOut, tag, callbacktranscribeUrl(...), transcribeFile(byte[]), transcribeFile(MediaTranscribeRequestOctetStream)model, encoding, sampleRate, endpointing, interimResults, vadEvents, utteranceEndMs, diarize, detectEntities, redact, keywords, keyterm, languagesendMedia(...), sendFinalize(...), sendKeepAlive(...), sendCloseStream(...)onResults, onMetadata, onUtteranceEnd, onSpeechStarted, plus generic onConnected, onDisconnected, onError, onMessageListenV1Response or ListenV1AcceptedResponse, handled via MediaTranscribeResponse.Visitorsrc/main/java/com/deepgram/resources/listen/v1/ plus examples under examples/listen/. This checkout does not include reference.md./llmstxt/developers_deepgram_llms_txtToken, not Bearer. Bearer only happens when you use accessToken(...).ListenV1Response and ListenV1AcceptedResponse with the visitor.transcribeFile(byte[]) reads the whole file into memory. Use the request builder only when you need extra params.redact as a single String. Do not assume Python-style list support in this checkout.encoding, the bytes must actually match it.sendFinalize(...) or sendCloseStream(...); otherwise trailing audio can be lost.connect(...). The examples do this consistently.V1WebSocketClient is async already. Wait on connect(...).get(...) before sending audio.examples/listen/TranscribeUrl.javaexamples/listen/FileUploadTypes.javaexamples/listen/AdvancedOptions.javaexamples/listen/LiveStreaming.javaexamples/listen/TranscribeCallback.javaexamples/listen/Captions.javaFor cross-language Deepgram product knowledge — the consolidated API reference, documentation finder, focused runnable recipes, third-party integration examples, and MCP setup — install the central skills:
npx skills add deepgram/skills
This SDK ships language-idiomatic code skills; deepgram/skills ships cross-language product knowledge (see api, docs, recipes, examples, starters, setup-mcp).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/deepgram-deepgram-java-sdk:deepgram-java-speech-to-textfrom deepgram-java-sdk
Claude Code refuses to install this plugin
This plugin's marketplace entry is invalid: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./" (+4 more)
This plugin's marketplace entry is invalid: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./" (+4 more)
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
7 skills in this plugin
/deepgram-java-audio-intelligenceUse when writing or reviewing Java code in this repo that enables Deepgram intelligence overlays on `/v1/listen` audio transcription - diarization, entity detection, sentiment, summarize, topics, intents, language detection, and redaction. Same endpoint as plain STT, but with extra request fields on `ListenV1RequestUrl` or `MediaTranscribeRequestOctetStream`. Use `deepgram-java-speech-to-text` for plain transcripts and `deepgram-java-text-intelligence` for analysis on existing text. Triggers include "audio intelligence", "diarize", "summarize audio", "sentiment from audio", "topic detection", and "redact"./deepgram-java-conversational-sttUse when writing or reviewing Java code in this repo that calls Deepgram Conversational STT v2 / Flux over `/v2/listen`. Covers `client.listen().v2().v2WebSocket()`, `V2ConnectOptions`, `onTurnInfo`, and turn-aware close handling. Use `deepgram-java-speech-to-text` for standard v1 transcription and `deepgram-java-voice-agent` for fully interactive assistants. Triggers include "flux", "conversational stt", "listen v2", "turn detection", "end of turn", and "eot"./deepgram-java-management-apiUse when writing or reviewing Java code in this repo that calls Deepgram Management APIs for projects, project models, API keys, members, invites, usage, and billing. Covers `client.manage().v1().*` plus related think-model discovery under `client.agent().v1().settings().think().models()`. Use `deepgram-java-voice-agent` for live agent conversations instead of admin APIs. Triggers include "management api", "list projects", "api keys", "members", "invites", "usage", "billing", and "models".Other plugins' skills for the same job