coronasafe / ayushma

Empowering Nurses with Multilingual ICU Protocols. Leveraging the rapid advancements in AI technology, created multilingual interfaces that assist nurses in rapidly upgrading their knowledge about ICU protocols.
https://ayushma-api.ohc.network
MIT License
7 stars 8 forks source link

Add check for empty recognized text in speech_to_text function #451

Closed Ashesh3 closed 3 months ago

Ashesh3 commented 3 months ago

This pull request adds a check for empty recognized text in the speech_to_text function. If no speech is detected in the provided audio, a ValueError is raised. This helps to ensure that the function handles cases where no speech is present and prevents further processing of empty text.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ayushma ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2024 5:24pm