FF: Microphone update.

This commit is contained in:
Enrico Ros
2024-09-16 16:47:13 -07:00
parent 30c7421877
commit f9d511c4b4
4 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -48,4 +48,5 @@ next-env.d.ts
.idea/
# Ingore k8s/env-secret.yaml
./k8s/env-secret.yaml
./k8s/env-secret.yaml
/certificates
+1
View File
@@ -6,6 +6,7 @@
"repository": "https://github.com/enricoros/big-agi",
"scripts": {
"dev": "next dev",
"dev-https": "next dev --experimental-https",
"build": "next build",
"start": "next start",
"lint": "next lint",
@@ -17,7 +17,7 @@ const micLegend = (errorMessage: string | null) =>
<Alert variant='soft' color='danger' sx={{ mt: 2, mb: 0.5, flexDirection: 'column', alignItems: 'flex-start' }}>
{errorMessage}
<ExternalDocsLink color='danger' level='body-sm' docPage='help-feature-microphone'>
Help & Support
How to fix...
</ExternalDocsLink>
</Alert>
)}
@@ -215,7 +215,7 @@ export const useSpeechRecognition = (onResultCallback: SpeechResultCallback, sof
setErrorMessage('Microphone access blocked. Enable it in your browser settings to use speech recognition.');
break;
case 'service-not-allowed':
setErrorMessage('Speech recognition permission denied. Check your browser/website settings.');
setErrorMessage('Speech recognition permission denied. Check your browser and system settings.');
break;
case 'audio-capture':
setErrorMessage(`Audio capture failed (${event.message}). Please try again.`);