Pebble.Dictation

Voice dictation via the Pebble microphone and phone speech recognition.

Native Pebble C API

Union Types

Error

type Error
    = NoMicrophone
    | PhoneDisconnected
    | Cancelled
    | Failed String

Dictation session errors.

Status

type Status
    = Starting
    | Recognizing
    | Finished

Dictation session lifecycle status.

Commands

start

start : Cmd msg

Start a dictation session.

stop

stop : Cmd msg

Stop an in-progress dictation session.

Subscriptions

onStatus

onStatus : (Status -> msg) -> Sub msg

Receive dictation status updates.

onResult

onResult : (Result Error String -> msg) -> Sub msg

Receive the transcribed text or an error when the session completes.