w2l_service

Module Contents

Classes

SpeechToTextService

Speech to text service using wave2letter

Functions

fix_w2l_text(output)

W2L text has some predictabile peculiarities, this function strips those out

main()

Set names, collect params, and give service to server

class w2l_service.SpeechToTextService(name, param)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Speech to text service using wave2letter

w2l_process

Setup publishers and subscribers

start(self, rate='')

Start the w2l stream and publish text

stop(self)

Stop the service

pause(self)

Set the service to success to stop publishing

sound_data_callback(self, data)

Sends recieved data to w2l process

playing_sound_pause_callback(self, data)

Sleeps when data is being published to the speaker

transcribe_stream(self)

Setup W2L Process and read results as available

w2l_service.fix_w2l_text(output)

W2L text has some predictabile peculiarities, this function strips those out

Parameters

output (string) – Raw output of W2L inference

Returns

clean tet of what was said

Return type

str

w2l_service.main()

Set names, collect params, and give service to server