feat: Add microphone selection and audio playback to FloatingVoice

- Add microphone device enumeration and selector dropdown
- Show current microphone name with click-to-change UI
- Microphone selection only available with Whisper GPU mode
- Add audio playback button to replay last recorded audio for debugging
- Improve dropdown animations with staggered item transitions
- Fix FloatingTerminal token request to type character by character
This commit is contained in:
2026-02-14 01:47:08 -06:00
parent 853aea6eb5
commit 5da6179f75
2 changed files with 331 additions and 3 deletions

View File

@@ -384,7 +384,19 @@ function requestToken() {
if (socket && socket.readyState === WebSocket.OPEN) {
tokenBuffer = ''
waitingForToken.value = true
socket.send(JSON.stringify({ type: 'input', data: 'genera token usando tu mcp\r' }))
// Send character by character then Enter (same as VoiceFloat)
const text = 'genera token usando tu mcp'
const chars = (text + '\r').split('')
let i = 0
const typeChar = () => {
if (i < chars.length && socket && socket.readyState === WebSocket.OPEN) {
socket.send(JSON.stringify({ type: 'input', data: chars[i] }))
i++
setTimeout(typeChar, 15)
}
}
typeChar()
}
}