Trace

public struct Trace

Debugging trace levels, for simple filtering.

  • Undocumented

    See more

    Declaration

    Swift

    @objc
    public enum Level : Int
  • Traces a message from a Spokestack module.

    Declaration

    Swift

    public static func trace(_ level: Trace.Level, message: String, config: SpeechConfiguration?, context: SpeechContext?, caller: Any)

    Parameters

    level

    The debugging trace level for this message.

    config

    The Spokestack configuration.

    message

    The debugging trace message.

    delegate

    The delegate that should receive the debugging trace message.

    context

    The context of the speech pipeline.

    caller

    The sender of the debugging trace message.

  • Traces a message from a Spokestack module.

    Declaration

    Swift

    public static func trace(_ level: Trace.Level, message: String, config: SpeechConfiguration, delegates: [Tracer], caller: Any)

    Parameters

    level

    The trace level for this message.

    config

    The Spokestack configuration.

    message

    The debugging trace message.

    delegates

    The delegates that should receive the trace message.

    caller

    The sender of the trace message.

  • Write data to a file, after clojure/core’s spit.

    Declaration

    Swift

    public static func spit(data: Data, fileName: String, context: SpeechContext?, config: SpeechConfiguration?)

    Parameters

    data

    The data to write to the file.

    fileName

    The name of the file that will be created/appended with the data.

    delegate

    The delegate that should receive the debugging trace message with the spit results.

    context

    The context of the speech pipeline.

    config

    The Spokestack configuration.