-
Notifications
You must be signed in to change notification settings - Fork 319
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
Fix voice instructions cache #1481
Conversation
62286c5
to
8cc856e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Guardiola31337 great digging here - as a first pass, most of my comments are already noted by your checklist 👍 please follow up once they are addressed, thanks!
11c5486
to
31a8c00
Compare
This is updated addressing almost all the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Guardiola31337 this is looking great, just a minor javadoc update for now.
I'll take a second pass once tests are added for VoiceInstructionCache
. Are we able to test VoiceInstructionLoader
as well? I think the logic in evictVoiceInstructions()
is pretty critical.
@@ -716,6 +716,10 @@ public void toggleHistory(boolean isEnabled) { | |||
mapboxNavigator.toggleHistory(isEnabled); | |||
} | |||
|
|||
public String retrieveSsmlAnnouncementInstruction(int index) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add some javadoc for this new API
37cc1b1
to
4f0cdcf
Compare
@danesfeder this is updated and ready for another round of 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Guardiola31337 this is great, thanks for adding tests for the cache logic you updated. Going to go ahead and ✅ but let's hold on merging until the java library is released. 👍
837de39
to
b286874
Compare
b286874
to
916b23f
Compare
Going ahead and merging here as MAS Thanks for the great feedback @danesfeder |
VoiceInstructionLoader
not caching ahead voice instructionsTODOs:
DEBUG
log callscore
and get all that code out of the processorui
? Custom progress change listener?build.gradle
before merging4.1.0
gets released 👀 Add interceptor and network interceptor support to Mapbox Speech mapbox-java#910