类 VoiceInstructions.Builder
java.lang.Object
ai.nextbillion.kits.directions.models.VoiceInstructions.Builder
- 封闭类:
- VoiceInstructions
This builder can be used to set the values describing the
VoiceInstructions.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract VoiceInstructions.Builderannouncement(String announcement) Provides the instruction string which was build on the server-side and can sometimes concatenate instructions together if maneuver instructions are too close to each other.abstract VoiceInstructionsbuild()This uses the provided parameters set using theVoiceInstructions.Builderand creates a new instance ofVoiceInstructions.abstract VoiceInstructions.BuilderdistanceAlongGeometry(Double distanceAlongGeometry) Returns the missing piece in which is needed to announce instructions at accurate times.abstract VoiceInstructions.BuilderssmlAnnouncement(String ssmlAnnouncement) Get the same instruction string you'd get fromVoiceInstructions.announcement()but this one includes Speech Synthesis Markup Language which helps voice synthesiser read information more humanely.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
distanceAlongGeometry
Returns the missing piece in which is needed to announce instructions at accurate times. If the user is less distance away from the maneuver than what thisdistanceAlongGeometry()than, the announcement should be called.- 参数:
distanceAlongGeometry- double value representing the distance to next maneuver in unit meters- 返回:
- this builder for chaining options together
-
announcement
Provides the instruction string which was build on the server-side and can sometimes concatenate instructions together if maneuver instructions are too close to each other.- 参数:
announcement- a string with the readable instructions ready to be read or displayed to a user- 返回:
- this builder for chaining options together
-
ssmlAnnouncement
Get the same instruction string you'd get fromVoiceInstructions.announcement()but this one includes Speech Synthesis Markup Language which helps voice synthesiser read information more humanely.- 参数:
ssmlAnnouncement- a string with the SSML instructions- 返回:
- this builder for chaining options together
-
build
This uses the provided parameters set using theVoiceInstructions.Builderand creates a new instance ofVoiceInstructions.- 返回:
- a new instance of Voice Instructions
-