SpatialAudioCuePanning
public class SpatialAudioCuePanning
extension SpatialAudioCuePanning: NativeBase
extension SpatialAudioCuePanning: Hashable
Use the SpatialAudioCuePanning to notify each of the azimuths which compose a spatial audio
trajectory along the audio cue.
-
Called once
startAngularPanning()starts.Declaration
Swift
public typealias onSpatialAzimuthStarterHandler = (_ spatialTrajectoryData: SpatialTrajectoryData) -> VoidParameters
spatialTrajectoryDataThe angular panning information of the current spatial trajectory.
-
This method will retrieve a stream of azimuth values to be passed onto the spatial audio renderer. An optional custom value for
CustomPanningData.estimatedAudioCueDuration,CustomPanningData.initialAzimuthInDegrees, or itsCustomPanningData.sweepAzimuthInDegreescan be here defined if the default data does not fully match the utilized Language or TTS engine or angle expectations. If startAngularPanning is called to spatialize the audio cue of a new maneuver before the full completion of a previous spatial audio trajectory, thenEventTextDelegatewill retrieve the azimuth values of the new maneuver.Declaration
Swift
public func startAngularPanning(nextCustomPanningData: CustomPanningData?, azimuthCallback: @escaping SpatialAudioCuePanning.onSpatialAzimuthStarterHandler)Parameters
nextCustomPanningDataDefines a new set of values related to spatial audio panning. When
CustomPanningDatais initialized asnil, the default set of values provided by HERE SDK will be used instead.azimuthCallbackCallback that will signal the next azimuth required to complete a spatial audio trajectory once the angular panning has started. Azimuth angular values are retrieved individually until the full duration of the audio trajectory has been reached, or a new text message has started its angular panning.