In our ongoing mission to make DOER v3 more accessible and user-friendly for aspiring businesses, we are thrilled to introduce the groundbreaking voice-to-text feature in our June launch. This feature, designed to greatly reduce the friction in daily interactions with our AI assistants, provides a seamless, hands-free experience that minimizes typing and makes apps more accessible to a wider range of users.
The Transformative Power of AI
At the core of our voice-to-text feature lies cutting-edge automatic speech recognition technology, Whisper-1, developed by OpenAI. By leveraging this powerful API, our AI assistants accurately convert spoken words into written text in real-time and across all major languages, enabling our collaborators to compose messages, take notes, and interact with their apps on the go.
Building Voice-to-Text in FlutterFlow: A Technical Walkthrough
Developing the voice-to-text feature in FlutterFlow involves a combination of frontend and backend components, seamlessly integrated with cutting-edge AI services. Let’s take a closer look at the technical aspects of this implementation.
/*! elementor – v3.12.2 – 23-04-2023 */ .elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=”.svg”]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}
- Frontend: Our chat box user interface features a mic icon that starts audio recording from the device’s microphone. A voice wave animation is then evoked to signal the start of the recording, which can be stopped at any time using the same button. These animations and icons provide visual feedback to guide users through the recording process, regulated by a page state variable.
- Backend: Our backend tracks the audio file (uploaded from the device or recorded live) and the text returned by the API call. The chat box is populated with the converted text only after a successful API call, whereupon users are prompted to send their message to the AI assistant.
- AI Integration: We chose Whisper-1, a comprehensively trained neural net, for its support for a wide range of languages and accents, which is ideal for DOER v3’s global user base. Despite its complexity, with the correct input files and output locations, the API call is streamlined using Flutterflow’s built-in actions.
Challenges and Lessons Learned
- iOS Web View Compatibility: After communication with the Flutterflow community and management, we discovered that the voice-to-text feature is currently not supported iOS web view. However, this feature is fully operational on computer web view, android, and iOS native app. With publication to the iOS App Store, no errors are expected.
- User Feedback: Clear feedback to users with a smooth and intuitive experience is imperative. If users are not given live feedback according to their recording status, utilizing this feature might prove frustrating.
Conclusion: Unleashing the Potential of Voice Interaction
The integration of voice-to-text functionality in DOER v3 marks a significant step forward in enhancing the user experience and accessibility of our AI assistants. By leveraging the power of Open-AI’s whisper-1 technology and seamlessly integrating it into our FlutterFlow app, we have created a powerful tool that enables users to interact with their devices using natural voice commands.
Join us on this exciting journey as we explore the vast potential of voice interaction in AI assistants. For early access, email doerv3@infiniteup.dev. With DOER v3, you can experience the convenience and power of voice-to-text technology firsthand, and discover new ways to streamline your interactions with AI.
by Shawn Ma (shawn@infiniteup.dev)
Try out DOER Business at doer.infiniteup.dev/business
