FirstModulAR 0.1.0
Loading...
Searching...
No Matches
PlaceMarker Class Reference

Places markers on the ground based on voice input. Not in use due to unpredictable text output from Whisper, but could be expanded to allow voice commands. More...

Inheritance diagram for PlaceMarker:

Public Member Functions

void PlaceMarkerFromInput (int messageId, string userInput)
 Places a marker on the ground based on user voice command string.
 

Static Public Member Functions

static int LevenshteinDistance (string source, string target)
 Calculates the Levenshtein distance between two strings. Levenshtein distance is a measure of the difference between two strings, calculated as the minimum number of single-character edits (insertions, deletions or substitutions) required to change one string into the other.
 

Public Attributes

GameObject markerPrefab
 
string userInput
 

Detailed Description

Places markers on the ground based on voice input. Not in use due to unpredictable text output from Whisper, but could be expanded to allow voice commands.

Member Function Documentation

◆ LevenshteinDistance()

static int PlaceMarker.LevenshteinDistance ( string source,
string target )
inlinestatic

Calculates the Levenshtein distance between two strings. Levenshtein distance is a measure of the difference between two strings, calculated as the minimum number of single-character edits (insertions, deletions or substitutions) required to change one string into the other.

Parameters
sourceThe source string.
targetThe target string.
Returns
The Levenshtein distance between the two strings.

◆ PlaceMarkerFromInput()

void PlaceMarker.PlaceMarkerFromInput ( int messageId,
string userInput )
inline

Places a marker on the ground based on user voice command string.

Parameters
messageIdThe id of the message.
userInput

Member Data Documentation

◆ markerPrefab

GameObject PlaceMarker.markerPrefab

◆ userInput

string PlaceMarker.userInput

The documentation for this class was generated from the following file: