KNGuide_Voice
INFO
This English reference is based on Directions SDK 1.12.12. For the latest version, see the Korean reference.
- Inherits from: NSObject
- Declared in: KNGuide_Voice.h
Provides voice guidance.
Properties
| Name | Description | Type |
|---|---|---|
duration | Voice guidance duration in seconds | @property (nonatomic, readonly) NSTimeInterval duration |
voiceCode | Voice guidance code | @property (nonatomic, readonly) KNVoiceCode voiceCode |
voiceDist | Guidance reference distance code | @property (nonatomic, readonly) KNVoiceDist voiceDist |
guideObj | Guidance objectvoiceCode exists if it is KNVoiceCode_Turn or KNVoiceCode_Safety and otherwise returns the value nil.KNVoiceCode_Turn: KNDirectionKNVoiceCode_Safety: KNSafetyKNVoiceCode_CheckingRouteChange, KNVoiceCode_RouteChanged, KNVoiceCode_RouteUnchanged, KNVoiceCode_OutOfRoute: NSString[Route request reason] • Route deviation: DEVIATION • User reroute: USER • Reroute due to a GPS error: GPS_ERROR • Waypoint added: WAYPOINT_ADD • Waypoint deleted: WAYPOINT_DEL | @property (nonatomic, readonly) SInt32 guideCode |
data | List of guidance voice data | @property (nonatomic, readonly) NSData *data |
Methods
setVolume
Sets the voice volume.
objc
- (void) setVolume: (float) aVolumeParameters
| Name | Description |
|---|---|
aVolume | Voice volume (range: 0f–1f) |