-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Announce values while connected to Android auto #1071
Comments
I am new to android studio and java programming, but modified the file speechutil.java to gain the audio focus before speaking. This solves the issue. Text to speech synthesis can now be heared while android auto is active. This is no clean programming. The audio focus is simply released 3 seconds after starting the TTS. A better way would be to handle the complete event as done in this TTS class example: https://gist.github.com/LukasKnuth/0c0d17b343483d25aca2 I have no clue how to suggest changes using git, so I am posting my modifications here in case one of the developers would like to adapt the changes. package com.eveningoutpost.dexdrip.UtilityModels; import android.content.ActivityNotFoundException; import androidx.annotation.RequiresApi; import com.eveningoutpost.dexdrip.Models.JoH; import java.util.Locale; /**
public class SpeechUtil {
} |
Are you familiar with |
As a courtesy to the developers, here's the diff:
I hope I caught all the changes, and didn't break any formatting... |
Can this issue be closed in favor of #1423? |
Closing due to inactivity |
Announcements of values using text synthesis are not played while connected with Android auto. Audio can only be heard when accidently colliding with navigation announcements (these audio duck the fm radio while playing). Could xdrip also audio duck the radio to be able to hear the current value? I think, this feature is referred to as "audio focus" in android development.
Thank you for your efforts.
The text was updated successfully, but these errors were encountered: