Posted by Terence Zhang – Developer Relations Engineer and Lisie Lillianfeld – Product Supervisor
TalkBack is Android’s display reader within the Android Accessibility Suite that describes textual content and pictures for Android customers who’ve blindness or low imaginative and prescient. The TalkBack staff is all the time working to make Android extra accessible. At this time, due to Gemini Nano with multimodality, TalkBack robotically gives customers with blindness or low imaginative and prescient extra vivid and detailed picture descriptions to raised perceive the pictures on their display.
Rising accessibility utilizing Gemini Nano with multimodality
Advancing accessibility is a core a part of Google’s mission to construct for everybody. That’s why TalkBack has a characteristic to explain photographs when builders didn’t embody descriptive alt textual content. This characteristic was powered by a small ML mannequin referred to as Garcon. Nevertheless, Garcon produced brief, generic responses and couldn’t specify related particulars like landmarks or merchandise.
The event of Gemini Nano with multimodality was the proper alternative to make use of the newest AI know-how to extend accessibility with TalkBack. Now, when TalkBack customers decide in on eligible units, the display reader makes use of Gemini Nano’s new multimodal capabilities to robotically present customers with clear, detailed picture descriptions in apps together with Google Images and Chrome, even when the system is offline or has an unstable community connection.
“Gemini Nano helps fill in lacking data,” stated Lisie Lillianfeld, product supervisor at Google. “Whether or not it’s extra particulars about what’s in a photograph a pal despatched or the model and minimize of clothes when buying on-line.”
Going past fundamental picture descriptions
Right here’s an instance that illustrates how Gemini Nano improves picture descriptions: When Garcon is offered with a panorama of the Sydney, Australia shoreline at night time, it’d learn: “Full moon over the ocean.” Gemini Nano with multimodality can paint a richer image, with an outline like: “A panoramic view of Sydney Opera Home and the Sydney Harbour Bridge from the north shore of Sydney, New South Wales, Australia.”
“It is superb how Nano can acknowledge one thing particular. For example, the mannequin will acknowledge not only a tower, however the Eiffel Tower,” stated Lisie. “This type of context takes benefit of the distinctive strengths of LLMs to ship a useful expertise for our customers.”
Utilizing an on-device mannequin like Gemini Nano was the one possible resolution for TalkBack to supply robotically generated detailed picture descriptions for photographs, even whereas the system is offline.
“The typical TalkBack person comes throughout 90 unlabeled photographs per day, and people photographs weren’t as accessible earlier than this new characteristic,” stated Lisie. The characteristic has gained optimistic person suggestions, with early testers writing that the brand new picture descriptions are a “recreation changer” and that it’s “great” to have detailed picture descriptions constructed into TalkBack.
Balancing inference verbosity and velocity
One necessary choice the Android accessibility staff made when implementing Gemini Nano with multimodality was between inference verbosity and velocity, which is partially decided by picture decision. Gemini Nano with multimodality at the moment accepts photographs in both 512 pixels or 768 pixels.
“The 512-pixel decision emitted its first token nearly two seconds quicker than 768 pixels, however the output wasn’t as detailed,” stated Tyler Freeman, a senior software program engineer at Google. “For our customers, we determined an extended, richer description was definitely worth the elevated latency. We have been capable of cover the perceived latency a bit by streaming the tokens on to the text-to-speech system, so customers don’t have to attend for the complete textual content to be generated earlier than listening to a response.”
A hybrid resolution utilizing Gemini Nano and Gemini 1.5 Flash
TalkBack builders additionally applied a hybrid AI resolution utilizing Gemini 1.5 Flash. With this server-based AI mannequin, TalkBack can present one of the best of on-device and server-based generative AI options to make the display reader much more highly effective.
When customers need extra particulars after listening to an robotically generated picture description from Gemini Nano, TalkBack offers the person an choice to hearken to extra by working the picture via Gemini Flash. When customers concentrate on a picture, they will use a three-finger faucet to open the TalkBack menu and choose the “Describe Picture” choice to ship the picture to Gemini 1.5 Flash on the server and get much more particulars.
By combining the distinctive benefits of each Gemini Nano’s on-device processing with the complete energy of cloud-based Gemini 1.5 Flash, TalkBack gives blind and low-vision Android customers a useful and informative expertise with photographs. The “describe picture” characteristic powered by Gemini 1.5 Flash launched to TalkBack customers on extra Android units, so much more customers can get detailed picture descriptions.
Compact mannequin, huge affect
The Android accessibility staff recommends builders trying to make use of the Gemini Nano with multimodality prototype and check on a robust, server-side mannequin first. There builders can perceive the UX quicker, iterate on immediate engineering, and get a greater concept of the very best high quality doable utilizing essentially the most succesful mannequin accessible.
Whereas Gemini Nano with multimodality can embody lacking context to enhance picture descriptions, it’s nonetheless finest apply for builders to supply detailed alt textual content for all photographs on their apps or web sites. If the alt textual content isn’t supplied, TalkBack may help fill within the gaps.
The Android accessibility staff’s purpose is to create inclusive and accessible options, and leveraging Gemini Nano with multimodality to supply vivid and detailed picture descriptions robotically is a giant step in the direction of that. Moreover, their hybrid strategy in the direction of AI, combining the strengths of each Gemini Nano on system and Gemini 1.5 Flash within the server, showcases the transformative potential of AI in selling inclusivity and accessibility and highlights Google’s ongoing dedication to constructing for everybody.
Get began
Study extra about Gemini Nano for app growth.
This weblog publish is a part of our collection: Highlight Week on Android 15, the place we offer assets — weblog posts, movies, pattern code, and extra — all designed that will help you put together your apps and make the most of the newest options in Android 15. You possibly can learn extra within the overview of Highlight Week: Android 15, which shall be up to date all through the week.