Package 

Class AudioRequest

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class AudioRequest
     implements Parcelable
                        

    if client wants audio guidance service to generate particular type audio, client should construct audio request first and call AudioGuidanceService::generateAudio by this request request contains two parts, one is request type indicate audio guidance service to find audio string and another is additional info, with which audio guidance will enrich the final string

    • Constructor Detail

    • Method Detail

      • getInfo

         final String getInfo()

        additional info string which will be prompt in final audio

      • isCurrentStreetNameRouteNumber

         final Boolean isCurrentStreetNameRouteNumber()

        "true" when type of "current_street_name" type is route number, if true, tasdk will process it into a more understandable string. "false" when type of "current_street_name" type is not route number. Default: "false".

      • isNextStreetNameRouteNumber

         final Boolean isNextStreetNameRouteNumber()

        "true" when type of "next_street_name" type is route number, if true, tasdk will process it into a more understandable string. "false" when type of "next_street_name" type is not route number,. Default: "false".

      • isNearbyStreetNameRouteNumber

         final Boolean isNearbyStreetNameRouteNumber()

        "true" when type of "nearby_street_name" type is route number, if true, tasdk will process it into a more understandable string. "false" when type of "nearby_street_name" type is not route number, not. Default: "false".

      • getCityName

         final String getCityName()

        the name of the city where the vehicle is located

      • getStateName

         final String getStateName()

        the name of the state where the vehicle is located

      • getHighwayExitNumber

         final String getHighwayExitNumber()

        highway exit number, tasdk will process it into a more understandable string.

      • getEte

         final Integer getEte()

        time spent from current location to next stop(waypoint or destination), unit: minute

      • getArrivalTime

         final String getArrivalTime()

        arrive next stop time value, time format should follow the tts engine's rule

      • isTimezoneChanged

         final String isTimezoneChanged()

        "true" when timezone of next stop is different from current one, "false" when timezone of next stop is same with current one, Default: "false", If client use other string except for "true" and "false", this value is always false.