pysinsy

The pysinsy module.

High-level API

Warning

The use of high-level APIs is not encouraged if you want to get a full control (e.g., using an external dictionary or htsvoice). Please manually instanciate the Sinsy class and use it with your own options.

pysinsy.synthesize(musicxml_path: str)[source]

Synthesize waveform given muxic XML file

Parameters

str – music XML path

Returns

tuple of wav array of type float64 and sampling frequency

Return type

tuple

Raises

RuntimeError – if fail to synthesize

pysinsy.extract_fullcontext(xml: str) list[source]

Extract full-context labels from music XML file

Parameters

xml (str) – Path to musicxml file.

Returns

list of full contexts

Return type

list

Utils

pysinsy.get_default_dic_dir()[source]

Returns default dictionary directory

Returns

dictionary path

Return type

str

pysinsy.get_default_htsvoice()[source]

Returns default hts voice

Returns

hts voice path

Return type

str