Home Manual Reference Source

References

WebAudio

summary
public

Recorder Simple Audio Recorder based on WebAudio technology

public

C Player

Player Simple Audio Player based on Web Audio API technology

public

Recorder Simple Audio Recorder based on Web Audio API technology.

administrative-sdk

summary
public

Facade for all methods used in the ITSLanguage Administrative SDK.

administrative-sdk/basic-auth

summary
public

BasicAuth domain model.

administrative-sdk/category

summary
private

Controller class for the Category model.

public

A category for a challenge.

administrative-sdk/choice-challenge

summary
private

Controller class for the ChoiceChallenge model.

public

ChoiceChallenge domain model.

administrative-sdk/choice-recognition

summary
private

Controller class for the ChoiceRecognition model.

public

ChoiceRecognition domain model.

administrative-sdk/connection

summary
public

Controller class for managing connection interaction.

administrative-sdk/email-credentials

summary
private

Controller class for the Email Credentials model.

public

Users can have email based credentials.

administrative-sdk/group

summary
private

Controller class for the Group model.

public

C Group

Group domain model.

administrative-sdk/organisation

summary
private

Controller class for the Organisation model.

public

administrative-sdk/phoneme

summary
public

administrative-sdk/profile

summary
private

Controller class for the Profile model.

public

Profile domain model.

administrative-sdk/progress

summary
private

Controller class for the Progress model.

public

Progress object for challenges.

administrative-sdk/pronunciation-analysis

summary
private

Controller class for the PronunciationAnalysis model.

public

administrative-sdk/pronunciation-challenge

summary
private

Controller class for the PronunciationChallenge model.

public

administrative-sdk/role

summary
private

Controller class for the Role model.

public

C Role

Role domain model.

administrative-sdk/speech-challenge

summary
private

Controller class for the SpeechChallenge model.

public

administrative-sdk/speech-recording

summary
private

Controller class for the SpeechRecording model.

public

administrative-sdk/user

summary
private

Controller class for the User model.

public

C User

administrative-sdk/utils

summary
private

administrative-sdk/word

summary
public

C Word

administrative-sdk/word-chunk

summary
public

api

summary
public

F assembleScope(tenant: string, organisation: string, user: string): string

Assemble the scope form the given individual pieces.

public

F authenticate(username: string, password: string, scope: string): Promise

Authenticate for the given credentials with the given scope.

public

Impersonate some other tenant, user or organisation.

public

F createCategory(category: Object): Promise

Create a new category.

public

F getAllCategories(filters: URLSearchParams): Promise

Get a all categories.

public

Get a single category by its ID.

public

Create a new group.

public

F getAllGroups(filters: URLSearchParams): Promise

Get a all groups.

public

Get a single group by its ID.

public

F createOrganisation(organisation: Object): Promise

Create a new organisation.

public

F getAllOrganisations(filters: URLSearchParams): Promise

Get a all organisations.

public

Get a single organisation by its ID.

public

F getAllRoles(filters: URLSearchParams): Promise

Get a all roles.

public

Get a single role by its ID.

public

Create a new user.

public

F getAllUsers(filters: URLSearchParams): Promise

Get a all users.

public

Get a single user by its ID.

public

V broadcaster: event-emitter.EventEmitter

The single event channel used throughout the ITSLanguage SDK.

api/challenges/choice

summary
public

Create a new choice challenge.

public

F getAllChoiceChallenges(filters: URLSearchParams): Promise

Get a all choice challenges.

public

Get a single choice challenge by its ID.

public

F createChoiceRecognition(challengeId: string, audio: Blob, recognised: string, recognitionId: string): Promise

Submit an audio fragment for recognition.

public

Get all Choice Recognitions for a specific Choice Challenge.

public

Get a single ChoiceRecognition by its ID.

public

F performChoiceRecognition(challengeId: string, recorder: Recorder, progressCb: Function): Promise

Expose easy way to run the choice challenge in one go.

public

The audio that is to be uploaded for recognition is streamed to the server.

public

This is the starting point for a choice recognition.

public

F prepareChoiceRecognitionChallenge(recognitionId: string, challengeId: string): Promise

Before performing the recognition, a WFST needs to be prepared for the challenge.

public

F recogniseChoiceRecognition(recognitionId: string, progressCb: Function): Promise<Object>

After completing the streaming of the audio, the recognition can be performed.

public

F writeAudioForChoiceRecognition(recognitionId: string, recorder: Recorder): Promise

The streaming works by repeatedly calling this RPC.

api/challenges/pronunciation

summary
public

Finishing the recording means we're ready to analyse! Smartest man in the entire universe. We also accept a special callback that can be used to receive progress on.

public

F getPronunciationAnalysisById(challengeId: string, analysisId: string): Promise<Object>

Ask the backend for a Pronunciation Analysis.

public

A Pronunciaion Challange could hold an alignment allready.

public

F prepareAnalysisChallenge(analysisId: string, challengeId: string): Promise<*>

Prepare the backend by telling it which challenge it can expect by a new analysis.

public

Prepare the backend for our audio.

public

Create a new analysis and return the ID.

public

Us the provided recorder to stream/send the recorded audio to the backend.

public

Create a new pronunciation challenge.

public

Delete the pronunciation challenge with the given ID.

public

F getAllPronunciationChallenges(filters: URLSearchParams): Promise

Get a all pronunciation challenges.

public

Get a single pronunciation challenge by its ID.

api/challenges/speech

summary
public

Create a new speech challenge.

public

F getAllSpeechChallenges(filters: URLSearchParams): Promise

Get a all speech challenges.

public

Get a single speech challenge by its ID.

public

Create a new recording for the given challenge with the data from the given recorder.

public

F getAllSpeechRecordings(challenge: string, filters: URLSearchParams): Promise

Get a all speech recordings.

public

Get a single speech recording by its ID.

api/communication

summary
public

F authorisedRequest(method: string, url: string, body: *, headers: Headers): Promise<Object>

Perform an HTTP request with the desired method, body, and headers to the given partial ITSLanguage API URL.

public

F request(method: string, url: string, body: *, headers: Headers): Promise<Object>

Perform an HTTP request for the given method, url, body, and headers.

public

F updateSettings(newSettings: Object)

Update the settings with the newSettings.

public

Close the current websocket connection.

public

F makeWebsocketCall(rpc: string, options: Object): Promise<*>

Make a rpc call to the ITSLanguage websocket server.

public

Open a new websocket connection.

public

V settings: {"apiUrl": string, "wsUrl": *, "authorizationToken": *}

The settings to use for the communication with the ITSLanguage API.

api/utils

summary
public

Encode the audio as base64 and send it to the websocket server.

public

Send the recorder settings to the websocket server to initialize it.

public

Wait for the recorder to get the permission for user media.

public

Convert the given ArrayBuffer to a base64 encoded string.

audio

summary
public

ITSLanguage AudioPlayer non-graphical component.

public

Audio recording component.

public
private
public
this class is experimental. When binding to an Audio Recorder, the stopwatch is not always synced properly. A difference of 0.1s or 0.2s too high may occur when counting. When binding to an Audio Player however, the timer will sync properly and show the correct duration of the loaded audio file.

A simple stopwatch that ticks every 100 ms.

private

Packer class for audio packing

private
private

WebAudioRecorder.

public

Generate a dummy Wave file for testing purposes.