snowboy_ros
Functions | Variables
training_service Namespace Reference

Functions

def get_wave (fname)
 

Variables

string age_group = "20_29"
 
dictionary data
 END OF MODIFY ##################. More...
 
string endpoint = "https://snowboy.kitt.ai/api/v1/train/"
 
string gender = "M"
 
string hotword_name = "???"
 
string language = "en"
 
string microphone = "??"
 
 response = requests.post(endpoint, json=data)
 
string token = ""
 MODIFY THE FOLLOWING #############. More...
 

Function Documentation

◆ get_wave()

def training_service.get_wave (   fname)

Definition at line 8 of file training_service.py.

Variable Documentation

◆ age_group

string training_service.age_group = "20_29"

Definition at line 19 of file training_service.py.

◆ data

dictionary training_service.data
Initial value:
1 = {
2  "name": hotword_name,
3  "language": language,
4  "age_group": age_group,
5  "gender": gender,
6  "microphone": microphone,
7  "token": token,
8  "voice_samples": [
9  {"wave": get_wave(wav1)},
10  {"wave": get_wave(wav2)},
11  {"wave": get_wave(wav3)}
12  ]
13  }

END OF MODIFY ##################.

Definition at line 31 of file training_service.py.

◆ endpoint

string training_service.endpoint = "https://snowboy.kitt.ai/api/v1/train/"

Definition at line 13 of file training_service.py.

◆ gender

string training_service.gender = "M"

Definition at line 20 of file training_service.py.

◆ hotword_name

string training_service.hotword_name = "???"

Definition at line 17 of file training_service.py.

◆ language

string training_service.language = "en"

Definition at line 18 of file training_service.py.

◆ microphone

string training_service.microphone = "??"

Definition at line 21 of file training_service.py.

◆ response

training_service.response = requests.post(endpoint, json=data)

Definition at line 45 of file training_service.py.

◆ token

string training_service.token = ""

MODIFY THE FOLLOWING #############.

Definition at line 16 of file training_service.py.

training_service.get_wave
def get_wave(fname)
Definition: training_service.py:8