Repository navigation
v1.7.1 — Fixes the app closing on vibration in v1.7.0, and the Danger alert that stayed after unlocking
This version fixes the defect in v1.7.0 that closed the app. Use this version instead of v1.7.0. Install it over v1.6.0 or v1.7.0 without uninstalling. The signing key is the same, so your settings stay.
Fixed in v1.7.1
- The app closed when it vibrated (#383). In v1.7.0, the app closed when you tapped a vibration mode in Settings (preview), opened the vibration page of the tutorial, or when it vibrated in External sound mode. It was caused by a wrong setup order inside the app, and only v1.7.0 had it.
- The lock screen alert for Danger sounds stayed after unlocking (#385). It should disappear when you unlock, but it stayed until you cleared it yourself or 5 minutes passed. The app was not receiving the unlock signal. It now disappears as soon as you unlock.
Changed in v1.7.0
If you update from v1.6.0, you also get everything below.
What's new
The Sounds tab is open to everyone. The Sounds tab, which until now was a preview for the team, is now shown to everyone, in the order Home · Settings · Sounds · Help. The types you choose here are now actually used for the screen colors, vibration and the lock screen alert.
- Sounds the AI recognizes are shown in groups of similar sounds (11 for Danger, 6 for Speech, 20 for Ambient), and for each group you choose whether it counts as Ambient, Speech or Danger. Choosing the default puts it back as it was.
- To change sounds one by one, turn on Advanced mode.
- For example, if you change the "Doorbell" group to Danger, the Danger color and vibration appear when the AI hears a doorbell or a knock. However, a sound newly set to Danger only counts as one vote when the AI decides the type, so this does not mean you will always be alerted every time a doorbell rings.
- One sound is often heard under several names at once (a siren is also heard as "Alarm"). If a sound still shows its old type after a change, change the related groups too. The tab has this note as well.
Lock screen alert for Danger sounds. While the phone is locked or the screen is off, the graphics are hidden behind the lock screen. If a Danger sound is heard then, the lock screen shows a "Danger sound heard" alert and the screen turns on briefly.
- The alert names the sound that made it a Danger sound (for example, Siren). It follows the types you changed in the Sounds tab. If no name can be picked clearly, the alert shows no name.
- The alert is silent. It alerts only once for one continuing Danger sound (at least 30 seconds until the next alert), and it disappears when you unlock.
- With the screen off, it alerts only in External sound mode or when Pause while the screen is off in the Battery settings is turned off.
- If Show danger sounds is turned off, there is no alert. On Samsung phones, if lock screen notifications are set to "Icons only", change your phone settings to show the content, or the text will not show.
The tutorial now lets you feel vibration and hear sounds.
- On the vibration page, when the phone in the picture shakes, your phone also really vibrates in the same rhythm (the same rhythm as the default Danger vibration).
- Tap the sound button below the picture to hear the sounds the picture shows as real recordings, such as birdsong, conversation and a car horn. It is off at first and follows the media volume.
- While the visualizer is running, the tutorial's vibration and sounds do not play. This keeps them from mixing with real alerts.
Changed behavior
Vibration in External sound mode
In External sound mode, the phone could mistake the sound of its own vibration for surrounding sound, so the vibration never stopped. This is now prevented in several layers.
- Each type now has a fastest vibration mode you can pick. Speech goes up to Slow and Danger up to Medium, and Ambient does not vibrate in this mode (there is always some sound around you, so the vibration would never stop). Types set faster vibrate at their fastest allowed mode, and in Settings those options are dimmed with the reason shown. When you turn External sound mode off, they vibrate as you set them. Your saved settings do not change.
- Vibration checks whether a sound is still going only in the pauses between pulses. So it can keep vibrating for a moment (usually under 1 second) after the sound stops.
- Vibration made by the app is removed from the sound the AI hears to tell sound types apart. While the phone vibrates, the AI keeps hearing the surrounding sound from just before. So the app's vibration does not change the screen color, keep Speech vibration going by itself, or show the lock screen alert. Loud sounds such as explosions are still heard during vibration.
- When it gets quiet and the AI pauses, vibration also stops about 1 second later. This keeps it from vibrating on with the last type the AI heard. The lock screen alert for Danger sounds also does not show from an old result. When sound starts again after a quiet period, the first vibration may come about 0.3 seconds late.
Microphone sensitivity is now 16 notches without numbers. Instead of a percentage (50–800%), the slider shows only notches. The far right is the maximum (×32), and the default is the 4th notch from the left. A value you chose before moves to the nearest notch (the old maximum of 800% is the 11th notch). The screen reader reads which notch it is, such as "4/16".
- Sensitivity applies only to the loudness that the graphics, vibration and lock screen alert see. It does not change the sound the AI hears. So sounds too quiet for the AI to hear do not vibrate, even if you raise the sensitivity. In that case, keep the phone near where the sound comes from and do not cover the microphone. Help and the user guide were updated with this too.
AI classification (contributed by a team member)
- Even when there is a gunshot candidate, a separately heard Danger cue such as a siren or an explosion counts as Danger if it is clear enough (5% or more among the top candidates). Before, any gunshot candidate blocked this path.
- Even if you set sirens to another type in the Sounds tab, other Danger cues heard with them, such as an explosion, still count as Danger.
- Every sound whose default type changed is listed under "Changed defaults" below.
Home and Settings
- The language button moved to the bottom right of Home (a globe and the current language name), and View tutorial moved to the bottom left. In right-to-left languages such as Arabic, left and right are swapped. The language card at the top of the Settings tab was removed.
- The Turn on and off from the notification shade (Quick Settings tile) card moved to between Sound types (AI) and Battery in the Settings tab.
- On the tab screens and in the tutorial, dragging sideways just 10% of the page width now moves to the next page. Also fixed jumping back to the previous page when swiping quickly several times in a row.
Sounds tab polish
- The first Speech group was renamed "Talking and whispering". In many languages its old name was the same word as the section title (Speech), which was confusing. As laughter, shouting and similar sounds moved into Speech groups, the remaining group was also renamed "Clapping, humming and whistling".
- When you change a group whose sounds have different types, you are asked once, only when sounds you changed one by one would actually be overwritten.
- If you change a type while a type filter (for example, Danger only, or changed sounds only) is on, the card does not disappear right away. It stays in place until you change the filter or the search text.
- The changed-count text now makes clear that it counts sounds ("Sounds changed: N" in English, and so on).
- The touch area of the filter buttons is now at least 48dp.
Changed defaults
The default type of the 23 sounds below changed. Sounds you changed yourself in the Sounds tab keep the type you chose. Only sounds you have not changed follow the new defaults. To go back, choose the type for that sound (or group) in the Sounds tab.
Ambient → Danger (warning sounds and sudden sounds that need attention, 9)
| Sound | Before | After |
|---|---|---|
| Reversing beeps | Ambient | Danger |
| Train horn | Ambient | Danger |
| Train whistle | Ambient | Danger |
| Foghorn | Ambient | Danger |
| Bicycle bell | Ambient | Danger |
| Emergency vehicle | Ambient | Danger |
| Skidding | Ambient | Danger |
| Tire squeal | Ambient | Danger |
| Slam | Ambient | Danger |
Ambient → Speech (voices people make, 11)
| Sound | Before | After |
|---|---|---|
| Bellow | Ambient | Speech |
| Whoop | Ambient | Speech |
| Yell | Ambient | Speech |
| Cheering | Ambient | Speech |
| Giggle | Ambient | Speech |
| Snicker | Ambient | Speech |
| Belly laugh | Ambient | Speech |
| Chuckle, chortle | Ambient | Speech |
| Baby cry, infant cry | Ambient | Speech |
| Whimper | Ambient | Speech |
| Wail, moan | Ambient | Speech |
Whimper (dog) stays Ambient.
Danger → Ambient (removed a temporary rule that stood in for gunshots, 2)
| Sound | Before | After |
|---|---|---|
| Plop | Danger | Ambient |
| Gargling | Danger | Ambient |
Speech → Ambient (an instrument, not a human voice, 1)
| Sound | Before | After |
|---|---|---|
| Singing bowl | Speech | Ambient |
Good to know:
- Baby cries, laughter and shouting now show in the Speech color. Speech vibration is off at first, so to feel them as vibration, turn on Speech vibration in Settings.
- Ambient sounds do not vibrate in External sound mode, so the sounds that became Ambient in this version (Plop, Gargling, Singing bowl) do not vibrate in this mode.
Fixed
- Fixed accessibility problems with the screen reader and large fonts.
- With large fonts, text in the permission dialog was cut off and could not be scrolled.
- The size and radius sliders were read out with numbers different from the screen. The vibration titles and strength sliders are now read with their type, such as "Danger, Strength".
- The screen reader did not announce starting and stopping.
- Section titles in Settings were not read as headings, and the headers of expandable cards were not read as buttons.
- In Help lists, "•" and numbers were read with separate stops, and on Android 12 and later, the notification read the selected mode as "selected" twice.
- With large fonts, the names in the vibration mode and visual mode options broke in the middle of words. The options are now split into several rows.
- Text contrast is now at least 4.5:1 (blue buttons, blue text, the red Stop button). The touch areas of the tab buttons, the vibration options and the Show rows for each sound type are now at least 48dp.
- On Android 10 phones with "Touch vibration" turned off, Slow, Medium and Fast vibration and previews did not play. This included the default Danger vibration (Medium).
- Fixed the tutorial picture jumping to a blank screen and starting over when you turned a page. It now keeps moving from the scene that was showing.
- Fixed the lock screen alert for Danger sounds showing the name of a sound other than the one that made it a Danger sound, or showing no name.
- Corrected the in-app license notice and open source notices. The sound names and groups in the Sounds tab are based on the AudioSet Ontology and are under CC BY-SA 4.0.
- Help and the user guide now match the actual behavior (the vibration limits and Microphone sensitivity advice in External sound mode, the conditions for raising a sound to Danger, and that you have to change the doorbell in the Sounds tab to feel it as vibration).
Faster
- The overlay now measures exactly the area it draws at the screen edges, and measures each side of the screen separately, so less is drawn each frame. What you see is the same.
- The Sounds tab no longer rebuilds its 521 sound names and search values every time you open it. It reuses them once built. It may look empty for a moment the first time you open it after starting the app, and after you change the language.
- When you turn a page in the tutorial, heavy calculations that ran on the screen-drawing side now run in the background.
Good to know
- AI classification is for reference only. Do not rely on this app as your only safeguard when safety is at stake.
- In External sound mode, other apps' vibration cannot be removed from the sound the AI hears. Depending on the phone, some of the sound of the app's own vibration may remain, and small sounds that start and end only while the phone is vibrating are not heard.
- In External sound mode, doorbells are Ambient by default, so they do not vibrate. To feel them as vibration, change the "Doorbell" group to Danger or Speech in the Sounds tab. Even then, not every doorbell sound may be alerted.
- When sounds that became Speech in this version, such as baby cries and cheering, are heard mixed with alarms, they may not be raised to Danger.
- In External sound mode, sounds are still drawn only in the center, with no direction.
- If another app's vibration interrupts Continuous vibration, it can take up to 30 seconds to resume (when showing sound playing on your phone).
- Translations of the newly named groups have not been reviewed by native speakers yet. Please tell us if anything reads awkwardly.
Tested
- On the released code (
d392e4c, the same content as maincfe77c2), 737 unit tests passed, and lint had only 1 existing warning (a newer dependency version is available). - 79 emulator instrumentation tests
- Android 17 (Pixel 7): passed on both a normal screen and a small screen (320×640)
- Android 10: passed on both a normal screen and a small screen
- The app closing on vibration (#383)
- Added a test that fails on the code before the fix. It passes after the fix.
- Installed a release build of the same code on a Galaxy S25+ (Android 16) and checked it. The app did not close with the vibration preview in Settings, on the tutorial's vibration page, or with vibration that went off many times over 2 minutes in External sound mode.
- Lock alert (#385): started in External sound mode, then locked and unlocked the phone, and confirmed that the app receives the unlock signal. Checked on Android 17 and 10 emulators and a Galaxy S25+. Before the fix, it did not receive it.
- Published APK: version 1.7.1 (12), targetSdk 37, arm64-v8a. It has the same signing key as v1.6.0 and v1.7.0 (SHA-256
f6a88fab…), so install it over the old app without uninstalling. The 13 R8 keep rules are intact, and the 6 native functions are present. APK SHA-256b8758438f7eb08fe857fcdc24546968bbcfa920e6e4de5804a080acecc17131e.
Not tested
- Vibration in External sound mode was seen on a phone. But removing the app's vibration from the AI input (#352) and vibration not keeping itself going (#290) were not specifically tested, and were checked only with simulations and emulators.
- The full flow of the lock screen alert for Danger sounds showing and then disappearing on unlock was not seen, because showing the alert needs a real Danger sound. It was checked up to the app receiving the unlock signal.
- Behavior on Galaxy S21 Ultra and S22 (Android 12).
- The Sounds tab speed improvement was measured only on an emulator.
- AI accuracy numbers are not included, because they were not measured again after 11 human vocal sounds were changed to Speech (#369).