public ProsodyWriter(ISpeechWriter writer, double?rate = null, double?pitch = null, double?volume = null) { _writer = writer; _rateInPercentage = rate; _pitchInPercentage = pitch; _volumeInDecibels = volume; }
public void Write(XmlWriter writer) { writer.WriteStartDocument(); writer.WriteStartElement("speak"); for (var index = 0; index < _says.Count; index++) { ISpeechWriter say = _says[index]; say.Write(writer); if (index != _says.Count - 1) { writer.WriteString(" "); } } writer.WriteEndElement(); writer.WriteEndDocument(); }
public SayWriter(ISpeech speech, string value) : base(speech) { _value = value; _writer = new PlainTextWriter(value); }
public ISpeech WithPitch(SpeechPitch pitch) { _writer = new ProsodyWriter(_writer, pitch); return(this); }
public ISpeech AsTelephone() { _writer = new SayAsWriter("telephone", _value); return(this); }
public ISpeech WithVolume(SpeechVolume volume) { _writer = new ProsodyWriter(_writer, volume); return(this); }
public EmphasiseWriter(ISpeechWriter writer, EmphasiseLevel level) { _writer = writer; _level = level; }
public ProsodyWriter(ISpeechWriter writer, SpeechRate rate) { _writer = writer; _rate = rate; }
public ProsodyWriter(ISpeechWriter writer, SpeechVolume volume) { _writer = writer; _volume = volume; }
public ISpeech AsAlias(string alias) { _writer = new SubWriter(_writer, alias); return(this); }
public ISpeech AsFraction() { _writer = new SayAsWriter("fraction", _value); return(this); }
public ISpeech AsPhoneme(PhoneticAlphabet alphabet, string phoneticPronunciation) { _writer = new PhonemeWriter(_writer, alphabet, phoneticPronunciation); return(this); }
public ISpeech AsSentence() { _writer = new TagWriter(_writer, "s"); return(this); }
public ISpeech AsParagraph() { _writer = new TagWriter(_writer, "p"); return(this); }
public ISpeech Emphasise(EmphasiseLevel level) { _writer = new EmphasiseWriter(_writer, level); return(this); }
public ISpeech WithVolume(double decibels) { _writer = new ProsodyWriter(_writer, volume: decibels); return(this); }
public ISpeech AsCharacters() { _writer = new SayAsWriter("characters", _value); return(this); }
public ISpeech AsUnit() { _writer = new SayAsWriter("unit", _value); return(this); }
public ISpeech SpellOut() { _writer = new SayAsWriter("spell-out", _value); return(this); }
public PronounceWriter(ISpeechWriter writer, PronounceRole role) { _writer = writer; _role = role; }
public ProsodyWriter(ISpeechWriter writer, SpeechPitch pitch) { _writer = writer; _pitch = pitch; }
public TagWriter(ISpeechWriter writer, string tag) { _writer = writer; _tag = tag; }
public ISpeech AsAddress() { _writer = new SayAsWriter("address", _value); return(this); }
public ISpeech WithPitch(double percentage) { _writer = new ProsodyWriter(_writer, pitch: percentage); return(this); }
public SubWriter(ISpeechWriter writer, string alias) { _writer = writer; _alias = alias; }
public ISpeech AsInterjection() { _writer = new SayAsWriter("interjection", _value); return(this); }
public PhonemeWriter(ISpeechWriter writer, PhoneticAlphabet alphabet, string phoneticPronunciation) { _writer = writer; _alphabet = alphabet; _phoneticPronunciation = phoneticPronunciation; }
public ISpeech Expletive() { _writer = new SayAsWriter("expletive", _value); return(this); }
public ISpeech AsTime() { _writer = new SayAsWriter("time", _value); return(this); }
public ISpeech WithRate(double percentage) { _writer = new ProsodyWriter(_writer, rate: percentage); return(this); }