mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
support for managed tts
This commit is contained in:
parent
779ad51f9f
commit
c845a7c40d
4 changed files with 84 additions and 61 deletions
|
|
@ -570,9 +570,13 @@ function App() {
|
|||
|
||||
// Check if voice is available on mount
|
||||
useEffect(() => {
|
||||
window.ipc.invoke('voice:getConfig', null).then(config => {
|
||||
Promise.all([
|
||||
window.ipc.invoke('voice:getConfig', null),
|
||||
window.ipc.invoke('oauth:getState', null),
|
||||
]).then(([config, oauthState]) => {
|
||||
const rowboatConnected = oauthState.config?.rowboat?.connected ?? false
|
||||
setVoiceAvailable(!!config.deepgram)
|
||||
setTtsAvailable(!!config.elevenlabs)
|
||||
setTtsAvailable(!!config.elevenlabs || rowboatConnected)
|
||||
}).catch(() => {
|
||||
setVoiceAvailable(false)
|
||||
setTtsAvailable(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue