Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@micdrop/openai

Latest version: v1.10.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: godefroy, lonestone-team
103 Stars
9 Forks
14 Versions
3.5K Downloads
MDX Repo language

Scan summary

@micdrop/openai was last scanned on 30 Nov 2026 at version 1.10.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 14 versions; the latest 2 were published within 2 days (29 and 30 Nov 2026).
  • Findings: No rules fired in version 1.10.0.
  • Downloads: 3,455 downloads.

Versions

14 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.10.0 LATEST 30 Nov 2026 No rules fired
1.9.1 29 Nov 2026 No rules fired
1.9.0 21 Nov 2026 No rules fired
1.8.0 7 Nov 2026 Not shown
1.7.1 4 Nov 2026 Not shown

No rules fired in 1.10.0

Findings

Findings for v1.10.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.10.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@micdrop/openai

Micdrop website | Documentation

OpenAI implementation for @micdrop/server.

Installation

npm install @micdrop/openai

OpenAI Agent

Usage with MicdropServer
import { OpenaiAgent } from '@micdrop/openai'
import {
  endCallTool,
  ignoreNoiseTool,
  MicdropServer,
  semanticTurnTool,
} from '@micdrop/server'

const agent = new OpenaiAgent({
  apiKey: process.env.OPENAI_API_KEY || '',
  model: 'gpt-4o', // Default model
  systemPrompt: 'You are a helpful assistant',

  // Built-in tools (optional)
  tools: [
    endCallTool(), // Ends the call when the user asks for it
    semanticTurnTool(), // Waits for the end of an unfinished sentence
    ignoreNoiseTool(), // Drops meaningless sounds
  ],

  // Custom OpenAI settings (optional)
  settings: {
    temperature: 0.7,
    max_output_tokens: 150,
  },
})

// Use with MicdropServer
new MicdropServer(socket, {
  agent,
  // ... other options
})
Usage without MicdropServer
import { OpenaiAgent } from '@micdrop/openai'

const agent = new OpenaiAgent({
  apiKey: process.env.OPENAI_API_KEY || '',
  systemPrompt: 'You are a helpful assistant',
})

agent.on('Message', (message) => console.log('Message:', message))

agent.addUserMessage('Hello, what can you do?')

// The answer is a text stream, written as the model generates it
agent.answer().on('data', (chunk) => process.stdout.write(chunk))
Events
Event Payload Description
Message MicdropConversationItem A message, a tool call or a tool result was added to the conversation.
ToolCall MicdropToolCall A tool declared with emitOutput ran, with its parameters and output.
CancelLastUserMessage none The last user message was dropped because it carried no intent.
SkipAnswer none The agent stays silent and waits for the user to finish their sentence.
EndCall none The agent decided that the call is over.
Failed none The agent gave up generating an answer after its retries.

See the Agent interface for the full contract.

OpenAI STT (Speech-to-Text)

OpenAI deprecated gpt-4o-transcribe (the default), gpt-4o-mini-transcribe and whisper-1, which shut down on February 26, 2027. Their replacements, gpt-live-transcribe and gpt-transcribe, work with the same options: language is sent as the list of expected languages these models take. gpt-live-transcribe is recommended for new integrations.

Usage with MicdropServer
import { OpenaiSTT } from '@micdrop/openai'
import { MicdropServer } from '@micdrop/server'

const stt = new OpenaiSTT({
  apiKey: process.env.OPENAI_API_KEY || '',
  model: 'gpt-live-transcribe', // Default 'gpt-4o-transcribe', shut down on February 26, 2027
  language: 'en',
})

// Use with MicdropServer
new MicdropServer(socket, {
  stt,
  // ... other options
})
Usage without MicdropServer
import { OpenaiSTT } from '@micdrop/openai'
import { createReadStream } from 'fs'

const stt = new OpenaiSTT({
  apiKey: process.env.OPENAI_API_KEY || '',
  language: 'en',
})

stt.on('Transcript', (text) => console.log('Transcript:', text))
stt.on('Failed', (chunks) => console.error('Failed:', chunks.length, 'chunks'))

// Audio is raw PCM, 16 bits, 16 kHz, mono
stt.transcribe(createReadStream('speech.pcm'))
Events
Event Payload Description
Transcript string Transcription of one utterance. The text is empty when nothing was recognized.
Failed Buffer[] Transcription gave up after its retries, with the audio chunks left pending.

See the STT interface for the full contract.

OpenAI TTS (Text-to-Speech)

Two ways to synthesize, picked by model:

  • Speech endpoint (default): gpt-4o-mini-tts, its dated snapshots, tts-1 and tts-1-hd. OpenAI deprecated all of them, and the endpoint shuts down on January 6, 2027. Until then, they work as before.
  • Realtime API: gpt-realtime-2.1-mini, the replacement OpenAI names, recommended for new integrations. Each sentence is sent as an out-of-band response with instructions to read it word for word. The model is a voice model rather than a reader, so it can reword a sentence now and then (a contraction such as "I'm" for "I am"), and OpenaiTTS logs the transcript of any sentence it reads differently.

Either way, the incoming text is buffered into sentences and each sentence is synthesized as soon as it is complete, so playback can start without waiting for the whole answer.

Usage with MicdropServer
import { OpenaiTTS } from '@micdrop/openai'
import { MicdropServer } from '@micdrop/server'

const tts = new OpenaiTTS({
  apiKey: process.env.OPENAI_API_KEY || '',
  // Recommended: the speech endpoint models (default 'gpt-4o-mini-tts')
  // shut down on January 6, 2027
  model: 'gpt-realtime-2.1-mini',
  voice: 'marin', // Default with gpt-realtime-*, 'alloy' otherwise

  // Delivery control, not for tts-1 / tts-1-hd (optional)
  instructions: 'Speak in a calm and friendly tone',

  // Speech speed: 0.25 to 1.5 with gpt-realtime-*, 0.25 to 4.0 with
  // tts-1 / tts-1-hd (optional)
  // speed: 1,
})

// Use with MicdropServer
new MicdropServer(socket, {
  tts,
  // ... other options
})
Usage without MicdropServer
import { OpenaiTTS } from '@micdrop/openai'
import { Readable } from 'stream'

const tts = new OpenaiTTS({
  apiKey: process.env.OPENAI_API_KEY || '',
  voice: 'alloy',
})

// Audio is raw PCM, 16 bits, mono, at tts.sampleRate
tts.on('Audio', (chunk) => console.log('Audio:', chunk.length, 'bytes'))
tts.on('Failed', (texts) => console.error('Failed:', texts))

tts.speak(Readable.from(['Hello! ', 'What can I do for you?']))
Events
Event Payload Description
Audio Buffer A chunk of audio, PCM 16 bits, mono, at tts.sampleRate (24 kHz), ready to be played.
Failed string[] Synthesis gave up after its retries, with the text that stayed unspoken.

See the TTS interface for the full contract.

Voices: the Realtime API offers alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin and cedar. fable, nova and onyx only exist on the speech endpoint.

Language: neither the speech endpoint nor the Realtime API has a language parameter, the voice follows the language of the input text. To influence the accent, use instructions (e.g. 'Speak with a Parisian accent') with gpt-realtime-* or gpt-4o-mini-tts.

OpenAI Realtime

OpenaiRealtime is a realtime model running on the OpenAI Realtime API. It hears the user and answers with its own voice, in place of a speech to text, an agent and a text to speech.

import { OpenaiRealtime } from '@micdrop/openai'
import { MicdropServer } from '@micdrop/server'

const realtime = new OpenaiRealtime({
  apiKey: process.env.OPENAI_API_KEY || '',
  model: 'gpt-realtime-2.1', // Default model
  voice: 'marin', // Default voice
  systemPrompt: 'You are a helpful assistant',
  language: 'en', // Optional, helps the transcription of the user
  reasoningEffort: 'minimal', // Optional, the lowest answers soonest
})

new MicdropServer(socket, {
  realtime,
  firstMessage: { generate: true },
})

It emits the events of an agent, plus Audio (the voice of the model, PCM 16 bits, 24 kHz, mono) and PartialMessage (the transcript of the answer so far).

OpenAI Classifier

Classifies each turn of the user with the Decisions API: predicates, choices and scores answered with probabilities by gpt-6-luna.

import { choice, OpenaiClassifier, predicate } from '@micdrop/openai'
import { MicdropServer } from '@micdrop/server'

const classifier = new OpenaiClassifier({
  apiKey: process.env.OPENAI_API_KEY || '',
  questions: {
    intent: choice('What does the user in `turn` want?', {
      billing: 'A charge, an invoice, a refund',
      outage: 'The service is down or slow',
      other: 'Anything else',
    }),
    wantsHuman: predicate('Does the user in `turn` ask for a human?'),
  },
})

new MicdropServer(socket, {
  stt,
  agent,
  tts,
  classification: { classifier, waitBeforeAnswer: true },
})

Documentation

Read full documentation of the OpenAI integration for Micdrop on the website.

License

MIT

Author

Originally developed for Raconte.ai, created and open sourced by Godefroy de Compreignac

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @micdrop/openai

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229