Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Marks the introduction as seen. Dictation-scoped and deliberately separate
* from the Voice Mode introduction, so neither feature's card suppresses the
* other's.
*/
/** Opens the settings editor, filtered by the query below. */
const
OPEN_SETTINGS_COMMAND
=
'workbench.action.openSettings'
;
/** Narrows settings to dictation's own: enabled, model, showTranscript. */
const
DICTATION_SETTINGS_QUERY
=
'dictation'
;
/** The `deviceId` value that means "whatever the system is using". */
const
SYSTEM_DEFAULT_DEVICE_ID
=
''
;
type
DictationMediaDevices
=
<
,
'addEventListener'
|
'removeEventListener'
|
'dispatchEvent'
|
'enumerateDevices'
|
'getUserMedia'
>
;
type
SwitchMicrophone
=
(
:
string
)
=>
Promise
<
|
undefined
>
;
type
DictationOnboardingAction
=
'shown'
|
'selectMicrophone'
|
'openSettings'
|
'openInstructions'
|
'close'
|
'escape'
;
type
DictationOnboardingActionClassification
=
{
:
{
:
'PublicNonPersonalData'
;
:
'FeatureInsight'
;
:
'The action taken in the Dictation onboarding card.'
}
;
:
{
:
'PublicNonPersonalData'
;
:
'FeatureInsight'
;
:
'Whether the card appeared automatically on first use or was opened manually.'
}
;
:
'meganrogge'
;
:
'Tracks engagement with the Dictation onboarding card.'
;
}
;
type
DictationOnboardingActionEvent
=
{
:
;
:
'automatic'
|
'manual'
;
}
;
// --- Level meter ---------------------------------------------------------
/**
* Bar metrics. Voice Mode's waveform - both the toolbar pill and its own
* introduction card - is a row of hairline strokes with a hairline of air
* beside each, so this uses the same instrument at a larger size.
*/
const
BAR_WIDTH
=
1
;
const
BAR_GAP
=
2
;
/** Amplitude with nothing being said: present, but clearly at rest. */
const
IDLE_GAIN
=
0.55
;
/** Extra amplitude at peak loudness. */
const
SPEAKING_GAIN
=
0.45
;
/** How quickly the row chases the microphone. Low and slow reads as smooth; a
* row that tracks every frame exactly reads as flicker rather than as level. */
const
LEVEL_EASING
=
0.12
;
/** Opacity of the row when nothing is being said. */
const
RESTING_OPACITY
=
0.35
;
/** Extra opacity at peak loudness, so the row brightens as the user speaks. */
const
SPEAKING_OPACITY
=
0.5
;
/**
* Opacity when the microphone cannot be read at all. Dimmer than rest, because
* a row at resting strength implies a working device that simply is not hearing
* anything - which is the opposite of what is true.
*/
const
UNAVAILABLE_OPACITY
=
0.2
;
/**
* Shortest gap between repaints when reduced motion is on. The meter is
* feedback, not decoration - switching it off would remove the only answer the
* card has to "is my microphone working" - so it is slowed to a readable step
* rather than stopped.
*/
const
REDUCED_MOTION_PAINT_INTERVAL_MS
=
100
;
/**
* One sine component of the waveform's texture. The trace is a handful of these
* summed together, which is what gives it a recognisable ripple rather than a
* single pulsing curve.
*/
interface
IWave
{
readonly
:
number
;
readonly
:
number
;
readonly
:
number
;
readonly
:
number
;
}
function
readMicrophoneLevel
(
:
|
undefined
,
:
<
>
|
undefined
)
:
number
{
if
(
!
||
!
)
{
return
0
;
}
.
getByteTimeDomainData
(
)
;
let
=
0
;
for
(
const
of
)
{
const
=
(
-
128
)
/
128
;
+=
*
;
}
return
.
min
(
1
,
.
sqrt
(
/
.
)
*
4
)
;
}
/**
* The waveform's texture. Mirrors the signatures Voice Mode's introduction uses,
* so the two cards read as the same instrument rather than as two features that
* happen to both draw bars.
*/
const
WAVES
:
readonly
[
]
=
[
{
:
1.0
,
:
0.42
,
:
0.42
,
:
0.0
}
,
{
:
1.7
,
:
0.26
,
:
-
0.31
,
:
1.1
}
,
{
:
2.6
,
:
0.19
,
:
0.24
,
:
2.4
}
,
{
:
4.1
,
:
0.13
,
:
-
0.18
,
:
0.7
}
,
]
;
/**
* Half-height of the row at `position` (0..1 across the strip), as a fraction of
* the available half-height.
*
* Each component contributes an already-positive, cusp-free curve. Summing raw
* sines and taking their magnitude would put a sharp corner at every zero
* crossing - that is what makes a waveform look like it is snapping up and down
* rather than flowing.
*/
function
bandFraction
(
:
number
,
:
number
)
:
number
{
let
=
0
;
let
=
0
;
for
(
const
of
WAVES
)
{
const
=
*
.
*
.
PI
*
2
+
*
.
+
.
;
+=
(
0.5
+
0.5
*
.
sin
(
)
)
*
.
;
+=
.
;
}
if
(
===
0
)
{
return
0
;
}
// Centre-peak silhouette: tallest in the middle and tapering to the ends, so
// the row reads as one instrument rather than a strip cut off at both edges.
const
=
.
sin
(
.
PI
*
.
min
(
1
,
.
max
(
0
,
)
)
)
;
return
(
/
)
*
(
0.35
+
0.65
*
)
;
}
/** Why the microphone preview is not showing a level. */
const
enum
{
/** The user (or the OS) refused access to the microphone. */
=
'denied'
,
/** There is no microphone to listen to. */
=
'noDevice'
,
/** Anything else, including a browser without `getUserMedia`. */
=
'unavailable'
,
}
/**
* Listens to a microphone purely so its loudness can be shown. Owns the media
* stream, the audio graph and nothing else; releasing it frees the microphone.
*
* This is deliberately independent of the dictation pipeline so the card can
* remain informational while recording starts immediately.
*/
class
MicrophonePreview
extends
Disposable
{
private
readonly
=
this
.
_register
(
new
MutableDisposable<DisposableStore>
(
)
)
;
private
:
|
undefined
;
private
:
<
>
|
undefined
;
private
readonly
=
this
.
_register
(
new
Emitter<MicrophonePreviewError |undefined>
(
)
)
;
/** Fires with the reason no level is available, or `undefined` once one is. */
readonly
=
this
.
.
;
private
:
|
undefined
;
get
error
(
)
:
|
undefined
{
return
this
.
;
}
constructor
(
private
readonly
:
,
private
readonly
:
|
undefined
,
@ILogService
private
readonly
:
,
)
{
super
(
)
;
}
/**
* Current loudness, `0..1`, or `0` when nothing is being heard. Read every
* frame, so it stays allocation-free.
*/
getLevel
(
)
:
number
{
// RMS, scaled so ordinary speech fills most of the row rather than a
// sliver of it.
return
readMicrophoneLevel
(
this
.
,
this
.
)
;
}
/**
* Listen to `deviceId` (empty means the system default). Replaces any stream
* already running, so switching devices never leaves two microphones open.
*/
// The card can be dismissed while `getUserMedia` is still resolving; the
// session is already cleared in that case, so assigning here would leak a
// live microphone.
if
(
this
.
.
)
{
.
dispose
(
)
;
return
;
}
this
.
.
=
;
this
.
=
;
this
.
=
new
Uint8Array
(
.
)
;
this
.
setError
(
undefined
)
;
}
/**
* Hand the microphone back. Called before dictation acquires its own stream:
* two captures of one device is what makes the audio service drop the
* capture, so the preview always lets go first.
*/
releaseMicrophone
(
)
:
void
{
this
.
=
undefined
;
this
.
=
undefined
;
this
.
.
clear
(
)
;
}
private
setError
(
:
|
undefined
)
:
void
{
if
(
this
.
===
)
{
return
;
}
this
.
=
;
this
.
.
fire
(
)
;
}
}
/** Map a `getUserMedia` rejection onto the reason shown in the card. */
function
toPreviewError
(
:
unknown
)
:
{
if
(
instanceof
DOMException
)
{
if
(
.
===
'NotAllowedError'
||
.
===
'SecurityError'
)
{
return
.
;
}
if
(
.
===
'NotFoundError'
||
.
===
'OverconstrainedError'
)
{
return
.
;
}
}
return
.
;
}
/** What the waveform needs each frame, supplied by the preview. */
interface
IWaveformSource
{
/** Loudness of the room, `0` when nothing is being heard. */
getLevel
(
)
:
number
;
/** `false` when the microphone cannot be read at all. */
isAvailable
(
)
:
boolean
;
}
/**
* The live waveform: a row of hairline strokes whose shape flows and whose
* height follows the microphone. The card's whole job is to answer "is this
* device hearing me", and a trace that swells when you speak answers it before
* any words are read.
*
* Deliberately not a spectrum analyser. Per-band bars make neighbours jump
* independently, which reads as a chart; the shape here is one continuous
* travelling wave - the same instrument Voice Mode uses - so the row moves like
* a voice.
*/
class
MicrophoneWaveform
extends
Disposable
{
private
:
[
]
=
[
]
;
private
readonly
=
this
.
_register
(
new
MutableDisposable<IDisposable>
(
)
)
;
private
=
false
;
private
=
0
;
private
=
0
;
constructor
(
private
readonly
:
,
private
readonly
:
,
:
typeof
|
undefined
,
@IAccessibilityService
private
readonly
:
,
)
{
super
(
)
;
.
setAttribute
(
'aria-hidden'
,
'true'
)
;
// The bar count follows the measured width rather than being fixed: at a
// fixed count the gaps stretch or crowd as the panel resizes, and the
// 1px/2px rhythm the instrument is built on is the first thing lost.
const
=
new
(
??
.
getWindow
(
)
.
)
(
(
)
=>
this
.
layout
(
)
)
;
.
observe
(
)
;
this
.
_register
(
toDisposable
(
(
)
=>
.
disconnect
(
)
)
)
;
this
.
layout
(
)
;
this
.
_register
(
toDisposable
(
(
)
=>
this
.
stop
(
)
)
)
;
}
/** Rebuild the row for the current width, if the count actually changed. */
private
layout
(
)
:
void
{
const
=
this
.
.
;
if
(
!
)
{
return
;
}
const
=
.
max
(
1
,
.
floor
(
(
+
BAR_GAP
)
/
(
BAR_WIDTH
+
BAR_GAP
)
)
)
;
if
(
===
this
.
.
)
{
return
;
}
.
clearNode
(
this
.
)
;
this
.
=
[
]
;
for
(
let
=
0
;
<
;
++
)
{
this
.
.
push
(
.
append
(
this
.
,
.
$
(
'span.dictation-onboarding-bar'
)
)
)
;
}
}
start
(
)
:
void
{
if
(
this
.
)
{
return
;
}
this
.
=
true
;
const
=
.
getWindow
(
this
.
)
;
const
tick
=
(
)
=>
{
if
(
!
this
.
)
{
return
;
}
this
.
update
(
.
.
now
(
)
)
;
this
.
.
=
.
scheduleAtNextAnimationFrame
(
,
)
;
}
;
this
.
.
=
.
scheduleAtNextAnimationFrame
(
,
)
;
}
stop
(
)
:
void
{
this
.
=
false
;
this
.
.
clear
(
)
;
}
private
update
(
:
number
)
:
void
{
const
=
this
.
.
isMotionReduced
(
)
?
REDUCED_MOTION_PAINT_INTERVAL_MS
:
0
;
if
(
-
this
.
<
)
{
return
;
}
this
.
=
;
// Ease towards the microphone rather than tracking it exactly: the level
// is what the row *means*, and a value that jumps every frame reads as
// flicker instead of as loudness.
this
.
+=
(
this
.
.
getLevel
(
)
-
this
.
)
*
LEVEL_EASING
;
const
=
IDLE_GAIN
+
this
.
*
SPEAKING_GAIN
;
const
=
*
0.001
;
// Brightness rides the same level as the height, so the row is quiet at
// rest and lifts as the user speaks - and drops below rest entirely when
// there is no microphone to hear. Set on the container: one style write
// per frame rather than one per stroke.
this
.
.
.
=
(
this
.
.
isAvailable
(
)
?
RESTING_OPACITY
+
this
.
*
SPEAKING_OPACITY
:
UNAVAILABLE_OPACITY
)
.
toFixed
(
3
)
;
const
=
this
.
.
;
for
(
let
=
0
;
<
;
++
)
{
const
=
>
1
?
/
(
-
1
)
:
0
;
// Scaled rather than resized: transform stays off the layout path, so
// a row of hairlines at 60fps never reflows the chat input. The floor
// leaves a thin line rather than nothing, so a silent microphone
/**
* The pickable microphones, with the physical system-default device identified
* in its label instead of represented by a separate synthetic row.
*
* Drops the virtual `default`/`communications` entries (which duplicate a real
* device under a synthetic id) and de-duplicates by `deviceId`, so one physical
* microphone appears exactly once - the same normalization the "Select
* Microphone" quick pick does, kept in one place so the two never disagree.
*/
export
function
buildMicrophoneOptions
(
:
readonly
[
]
)
:
[
]
{
const
=
new
Set<string>
(
)
;
const
:
[
]
=
[
]
;
for
(
const
of
)
{
if
(
.
!==
'audioinput'
||
.
===
'default'
||
.
===
'communications'
)
{
continue
;
}
if
(
.
has
(
.
)
)
{
continue
;
}
.
add
(
.
)
;
.
push
(
)
;
}
if
(
.
===
0
)
{
return
[
{
:
SYSTEM_DEFAULT_DEVICE_ID
,
:
localize
(
'dictation.onboarding.systemDefault'
,
"System default"
)
,
}
]
;
}
const
=
.
find
(
=>
.
===
'audioinput'
&&
.
===
'default'
)
;
const
=
?.
.
replace
(
/^(?:default|system default)\s*-\s*/i
,
''
)
.
trim
(
)
;
const
=
?
.
find
(
=>
(
.
&&
.
===
.
)
||
(
&&
.
===
)
)
??
[
0
]
:
undefined
;
const
:
[
]
=
[
]
;
if
(
)
{
const
=
?.
||
;
.
push
(
{
:
SYSTEM_DEFAULT_DEVICE_ID
,
:
?
localize
(
'dictation.onboarding.defaultDevice'
,
"{0} (System default)"
,
)
:
localize
(
'dictation.onboarding.systemDefault'
,
"System default"
)
,
}
)
;
}
for
(
const
of
)
{
if
(
===
)
{
continue
;
}
.
push
(
{
:
.
,
// Labels are empty until microphone permission has been granted at
// least once; a truncated id is still better than a blank row.
:
.
||
localize
(
'dictation.onboarding.unknownDevice'
,
"Unknown device ({0})"
,
.
.
slice
(
0
,
8
)
)
,
}
)
;
}
return
;
}
/**
* Index of the microphone currently in use. Falls back to the system default
* when the remembered device has been unplugged, which is exactly what dictation
* itself does when it acquires the stream.
*/
/** Whether this manually opened card should also acquire a microphone preview. */
readonly
:
boolean
;
readonly
:
'automatic'
|
'manual'
;
}
/**
* The first-run dictation card explains the feature and offers microphone
* selection while recording starts. When reopened manually, it also previews
* the selected microphone.
*
* The card runs alongside the first dictation, so it explains the feature
* without delaying the action the user invoked.
*/
// Automatic onboarding runs beside an already active dictation
// stream, so only the manually opened introduction owns this
// independent preview.
const
=
this
.
=
this
.
_register
(
.
createInstance
(
,
this
.
,
this
.
)
)
;
this
.
=
this
.
_register
(
.
createInstance
(
,
,
{
getLevel
:
(
)
=>
.
getLevel
(
)
,
isAvailable
:
(
)
=>
.
===
undefined
,
}
,
undefined
)
)
;
this
.
_register
(
.
onDidChangeError
(
(
)
=>
this
.
updateHint
(
)
)
)
;
this
.
=
.
append
(
this
.
,
.
$
(
'.dictation-onboarding-hint'
)
)
;
this
.
.
setAttribute
(
'aria-live'
,
'polite'
)
;
this
.
updateHint
(
)
;
void
this
.
startPreview
(
)
;
}
else
{
this
.
=
this
.
_register
(
.
createInstance
(
,
,
{
getLevel
:
(
)
=>
readMicrophoneLevel
(
this
.
,
this
.
)
,
isAvailable
:
(
)
=>
this
.
!==
undefined
,
}
,
undefined
)
)
;
void
this
.
refreshMicrophones
(
)
;
}
this
.
.
start
(
)
;
this
.
logAction
(
'shown'
)
;
}
/**
* Stops the waveform and releases the microphone while the card is put away
* for a notification, so an invisible introduction never holds the microphone
* open or keeps painting.
*/
setVisible
(
:
boolean
)
:
void
{
super
.
setVisible
(
)
;
if
(
)
{
this
.
.
start
(
)
;
if
(
this
.
)
{
void
this
.
startPreview
(
)
;
}
}
else
{
this
.
.
stop
(
)
;
this
.
?.
releaseMicrophone
(
)
;
}
}
/**
* What dictation is, and that none of it is fixed. The card is shown once, so
* the two things a user might want to change afterwards - whether dictation
* runs at all, and how it writes what they say - have to be reachable from
* here rather than left to a command nobody knows to look for.
*
* `[[...]]` marks the clauses that become links, so translators can keep the
* sentence natural instead of having fixed phrases concatenated on.
*/
'Preserve the double square brackets: they mark the text that becomes a link. Keep both links, in this order - the first opens settings, the second opens the customization file.'
]
,
}
,
"Speak and it becomes text. Adjust [[settings]] or [[how it's written]] any time."
)
;
.
append
(
,
renderFormattedText
(
,
{
:
{
// The handler is given the link's index, so the two are told apart
// by position - hence the ordering note to translators above.
callback
:
=>
{
const
[
,
...
]
=
===
'0'
?
[
OPEN_SETTINGS_COMMAND
,
{
:
DICTATION_SETTINGS_QUERY
}
]
:
[
CONFIGURE_DICTATION_INSTRUCTIONS_ACTION_ID
]
;
this
.
logAction
(
===
'0'
?
'openSettings'
:
'openInstructions'
)
;
this
.
.
executeCommand
(
as
string
,
...
)
.
catch
(
=>
this
.
.
error
(
`[chat-stt] failed to open dictation customization: ${error}`
)
)
;
}
,
:
this
.
,
}
,
}
,
.
$
(
'span'
)
)
)
;
// `renderFormattedText` gives each anchor a click listener and nothing
// else, so make them real controls: reachable by Tab and operable by
// Enter or Space like any other button. The renderer owns this DOM, so a
// selector is the only handle on it.
// eslint-disable-next-line no-restricted-syntax
for
(
const
of
.
querySelectorAll
(
'a'
)
)
{
.
=
0
;
.
setAttribute
(
'role'
,
'button'
)
;
this
.
_register
(
.
addDisposableListener
(
,
.
.
KEY_DOWN
,
=>
{
const
=
new
StandardKeyboardEvent
(
)
;
if
(
.
equals
(
.
)
||
.
equals
(
.
)
)
{
.
preventDefault
(
)
;
.
click
(
)
;
}
}
)
)
;
}
}
/**
* Bring the card to life. The device list and the microphone are started
* together rather than in sequence: `getUserMedia` can take a second or more
* to return, and waiting for it would leave the picker empty for that whole
* time. Enumeration is repeated once the microphone is live, because device
* labels stay blank until permission has been granted at least once.
*/
private
async
startPreview
(
)
:
Promise
<
void
>
{
if
(
!
this
.
)
{
return
;
}
const
=
this
.
.
listen
(
this
.
currentDeviceId
(
)
)
;
await
Promise
.
all
(
[
,
this
.
refreshMicrophones
(
)
]
)
;
await
this
.
refreshMicrophones
(
)
;
}
private
currentDeviceId
(
)
:
string
{
return
this
.
.
get
(
.
,
.
APPLICATION
,
SYSTEM_DEFAULT_DEVICE_ID
)
;
}
async
refreshMicrophones
(
?
:
,
?
:
)
:
Promise
<
void
>
{
if
(
this
.
.
)
{
return
;
}
this
.
=
??
this
.
;
if
(
!
this
.
&&
)
{
this
.
=
;
this
.
=
new
Uint8Array
(
.
)
;
}
if
(
!
this
.
&&
!
this
.
)
{
return
;
}
if
(
!
this
.
?.
)
{
return
;
}
let
:
[
]
;
try
{
=
await
this
.
.
enumerateDevices
(
)
;
}
catch
(
)
{
this
.
.
trace
(
`[chat-stt] could not enumerate microphones: ${error}`
)
;
return
;
}
if
(
this
.
.
)
{
return
;
}
const
=
buildMicrophoneOptions
(
)
;
// Wait for a real microphone label before rendering a multi-microphone picker.
if
(
.
>
1
&&
!
.
some
(
=>
.
===
'audioinput'
&&
.
)
)
{
return
;
}
this
.
=
;
this
.
renderPicker
(
)
;
}
/** A picker with one entry is not a choice, so only show this row for multiple microphones. */
private
renderPicker
(
)
:
void
{
if
(
!
this
.
)
{
return
;
}
this
.
.
clear
(
)
;
.
clearNode
(
this
.
)
;
this
.
.
=
this
.
.
length<=1;if(this.pickerContainer.hidden){return;}
dom.append(this.pickerContainer, dom.$(`span.codicon.codicon-${Codicon.micCompact.id}.dictation-onboarding-picker-icon`)).setAttribute('aria-hidden','true');const selected =indexOfMicrophone(this.options,this.currentDeviceId());const store =newDisposableStore();// Custom-drawn rather than the platform control, and with the face colors// blanked so the row inherits the card instead of carrying the platform's// select chrome - that fill is exactly what this row should not have at// rest. The dropdown keeps its own colors, so only the face changes.const selectBox = store.add(newSelectBox(this.options.map(option =>
(
{
:
.
}
)
)
,
,
this
.
,
{
...
,
:
undefined
,
:
undefined
,
:
undefined
}
,
{
:
localize
(
'dictation.onboarding.microphone'
,
"Microphone"
)
,
:
true
}
,
)
)
;
.
render
(
this
.
)
;
.
add
(
.
onDidSelect
(
=>
this
.
selectMicrophone
(
.
)
)
)
;
this
.
.
=
;
}
private
selectMicrophone
(
:
number
)
:
void
{
const
=
this
.
[
]
;
if
(
!
)
{
return
;
}
this
.
logAction
(
'selectMicrophone'
)
;
// Shared with Voice Mode and with the "Select Microphone" quick pick, so
// the choice made here is the one dictation actually records from.
if
(
.
)
{
this
.
.
store
(
.
,
.
,
.
APPLICATION
,
.
MACHINE
)
;
}
else
{
this
.
.
remove
(
.
,
.
APPLICATION
)
;
}
status
(
localize
(
'dictation.onboarding.microphoneSelected'
,
"{0} selected."
,
.
)
)
;
if
(
this
.
)
{
void
this
.
.
listen
(
.
)
.
then
(
(
)
=>
this
.
updateHint
(
)
)
;
}
else
if
(
this
.
)
{
void
this
.
switchMicrophone
(
.
)
.
then
(
=>
this
.
refreshMicrophones
(
)
)
.
catch
(
=>
this
.
.
error
(
`[chat-stt] failed to switch dictation microphone: ${error}`
)
)
;
}
}
/**
* The hint only speaks when the microphone cannot be read. At rest the
* moving waveform is the instruction - a line of text telling you to talk is
* one the card can do without.
*/
"No microphone access. Check your system privacy settings."
)
;
case
.
:
return
localize
(
'dictation.onboarding.noDevice'
,
"No microphone found."
)
;
default
:
return
localize
(
'dictation.onboarding.unavailable'
,
"Can't read the microphone level."
)
;
}
}
// --- Service -------------------------------------------------------------
export
const
=
createDecorator<IDictationOnboardingService>
(
'dictationOnboardingService'
)
;
export
interface
IDictationOnboardingService
{
readonly
:
undefined
;
readonly
:
boolean
;
/**
* Register a container that can host the card (a chat input). The most
* recently focused host wins when the card is shown.
*/
registerHost
(
:
)
:
;
/**
* Show the card alongside the user's first dictation. Dictation starts
* independently and is never gated on the card.
*/
showIfNeeded
(
)
:
boolean
;
/**
* Show the card again regardless of whether it has been seen, for the "Show
* Introduction" command. Returns `false` when there is no visible chat input
* to dock it to, so the caller can explain why nothing happened.
*/
show
(
)
:
boolean
;
/** Refresh the visible card after dictation acquires microphone permission. */
refreshMicrophones
(
?
:
,
?
:
)
:
void
;
/** Reset first-run state so the introduction is shown next time. */