mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

When i use this code in mapbox there is no voice instruction

Open ejpespa opened this issue 8 years ago • 6 comments

Point origin = originPosition; Point destination = destinationPosition;

    // Pass in your Amazon Polly pool id for speech synthesis using Amazon Polly
    // Set to null to use the default Android speech synthesizer
    String awsPoolId = null;

    boolean simulateRoute = true;

    NavigationViewOptions options = NavigationViewOptions.builder()
            .origin(origin)
            .destination(destination)
            .awsPoolId(awsPoolId)
            .shouldSimulateRoute(simulateRoute)
            .build();

    // Call this method with Context from within an Activity
    NavigationLauncher.startNavigation(MainActivity.this, options);

ejpespa avatar Mar 05 '18 08:03 ejpespa

Hey @roxic8, which version of the SDK are you using? With simulation set to true, navigation should begin and you should start to hear instructions for the default TextToSpeech engine. Does navigation begin to move on the screen?

danesfeder avatar Mar 05 '18 14:03 danesfeder

@danesfeder sdk version is 5.3.1 and the navigation is 0.10.0 and also the navigation-ui is 0.10.0 what do you think is wrong ???

ejpespa avatar Mar 05 '18 15:03 ejpespa

@danesfeder yes it navigate but there is no voice speaking the direction

ejpespa avatar Mar 05 '18 15:03 ejpespa

cc: @devotaaabel who is actively working on voice-related PRs and can confirm if this is going to be fixed as part of https://github.com/mapbox/mapbox-navigation-android/pull/751 work.

Guardiola31337 avatar Mar 22 '18 10:03 Guardiola31337

@roxic8 I'm not sure what the issue is, but this shouldn't be an issue when our new MapboxSpeech is integrated, which should be within a week or so.

devotaaabel avatar Mar 22 '18 15:03 devotaaabel

https://github.com/mapbox/mapbox-navigation-android/pull/751 has landed 🎉 and will ship with the upcoming release.

@roxic8 feel free to comment/open a new ticket if you can still reproduce OP! Thanks again for reaching out and reporting your issue. Closing.

Guardiola31337 avatar Apr 06 '18 16:04 Guardiola31337