Please Select Your Location
Australia
Österreich
België
Canada
Canada - Français
中国
Česká republika
Denmark
Deutschland
France
HongKong
Iceland
Ireland
Italia
日本
Korea
Latvija
Lietuva
Lëtzebuerg
Malta
المملكة العربية السعودية (Arabic)
Nederland
New Zealand
Norge
Polska
Portugal
Russia
Saudi Arabia
Southeast Asia
España
Suisse
Suomi
Sverige
台灣
Ukraine
United Kingdom
United States
Please Select Your Location
België
Česká republika
Denmark
Iceland
Ireland
Italia
Latvija
Lietuva
Lëtzebuerg
Malta
Nederland
Norge
Polska
Portugal
España
Suisse
Suomi
Sverige

startTranscription(bContinuous:)

Converts spoken audio input into text.

func startTranscription(bContinuous: Bool) async throws -> Int


Parameters

bContinuous

This determines whether the microphone remains active to capture additional
audio input or stops after the initial input.

Return value

0 if function calling is successful; otherwise, -1 .

Exception

The following exceptions may be thrown: ViveGlassError.UnregisteredAppException, ViveGlassError.GlassesPermissionDeniedException.


Permissions

Microphone permission is required before calling startTranscription().


See also

Speech to Text (STT)

func stopTranscription ()

Ends the active speech-to-text session.

Responding from VIVE AI Glasses event

func glasses(didReceiveTranscribedEvent: TranscribedEvent, text: String)

Tells the delegate when a TranscribedEvent is triggered.

Permissions

func requestPermission()

Requests permission to access VIVE AI Glasses resources.

func checkPermission()

Checks if the app has been granted the required permissions.

Enumerations

enum Permission

This defines the permission that the app is requesting.

enum PermissionResult

This indicates the result of the permission request.

Error handling and exceptions

enum ViveGlassError

This represents an error thrown by the VIVE AI Glasses SDK.