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:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user