pysinsy.sinsy

The core cython module for Sinsy.

Sinsy

class pysinsy.sinsy.Sinsy

The core Sinsy class

clearScore()

Clear loaded score

createLabelData()

Create labels

Parameters
  • monophoneFlag (bool) – Monophone or full-context

  • overwriteEnableFlag (int) – Overrite or not

  • timeFlag (int) – with time or not.

Returns

labels

Return type

LabelStrings

get_sampling_frequency()

Get sampling frequency

Returns

sampling rate.

Return type

int

loadScoreFromMusicXML()

Load score from music xml

Parameters

xml (str) – Path to music xml.

loadVoices()

Load hts voice

Parameters

voice (str) – Path to hts voice.

setAlpha()

Set alpha

Parameters

alpha (float) – Alpha

setLanguages()

Set language

Parameters
  • lang (str) – language code.

  • config (str) – Path to dictionary.

setVolume()

Set volume

Parameters

volume (float) – volume

synthesize()

Synthesize waveform

Returns

numpy array of type float64. sr (int): sampling frequency.

Return type

wav (ndarray)

Raises

RuntimeError – if fail to synthesize