-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from nixonsam/SSML
added SSML tags to Speak Element
- Loading branch information
Showing
12 changed files
with
341 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class Break : PlivoElement | ||
{ | ||
public Break(dict parameters): base(parameters) | ||
{ | ||
Nestables = new list() { "" }; | ||
ValidAttributes = new list() | ||
{ | ||
"strength", | ||
"time", | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class Emphasis : PlivoElement | ||
{ | ||
public Emphasis(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() | ||
{ | ||
"Break", | ||
"Emphasis", | ||
"Lang", | ||
"Phoneme", | ||
"Prosody", | ||
"SayAs", | ||
"Sub", | ||
"W" | ||
}; | ||
ValidAttributes = new list() | ||
{ | ||
"level" | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
using System.Xml.Linq; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class Lang : PlivoElement | ||
{ | ||
public Lang(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() | ||
{ | ||
"Break", | ||
"Emphasis", | ||
"Lang", | ||
"P", | ||
"Phoneme", | ||
"Prosody", | ||
"S", | ||
"SayAs", | ||
"Sub", | ||
"W" | ||
}; | ||
ValidAttributes = new list() | ||
{ | ||
"xmllang" | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class P : PlivoElement | ||
{ | ||
public P(string body) | ||
: base(body) | ||
{ | ||
Nestables = new list() { | ||
"Break", | ||
"Emphasis", | ||
"Lang", | ||
"Phoneme", | ||
"Prosody", | ||
"SayAs", | ||
"Sub", | ||
"S", | ||
"W" | ||
}; | ||
ValidAttributes = new list() {""}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class Phoneme : PlivoElement | ||
{ | ||
public Phoneme(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() {""}; | ||
ValidAttributes = new list() | ||
{ | ||
"alphabet", | ||
"ph" | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class Prosody : PlivoElement | ||
{ | ||
public Prosody(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() | ||
{ | ||
"Break", | ||
"Emphasis", | ||
"Lang", | ||
"P", | ||
"Phoneme", | ||
"Prosody", | ||
"S", | ||
"SayAs", | ||
"Sub", | ||
"W" | ||
}; | ||
ValidAttributes = new list() | ||
{ | ||
"volume", | ||
"rate", | ||
"pitch" | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class S : PlivoElement | ||
{ | ||
public S(string body) | ||
: base(body) | ||
{ | ||
Nestables = new list() { | ||
"Break", | ||
"Emphasis", | ||
"Lang", | ||
"Phoneme", | ||
"Prosody", | ||
"SayAs", | ||
"Sub", | ||
"W" | ||
}; | ||
ValidAttributes = new list() {""}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class SayAs : PlivoElement | ||
{ | ||
public SayAs(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() {""}; | ||
ValidAttributes = new list() | ||
{ | ||
"interpret-as", | ||
"format" | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class Sub : PlivoElement | ||
{ | ||
public Sub(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() {""}; | ||
ValidAttributes = new list() | ||
{ | ||
"alias", | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using dict = System.Collections.Generic.Dictionary<string, string>; | ||
using list = System.Collections.Generic.List<string>; | ||
|
||
namespace Plivo.XML | ||
{ | ||
public class W : PlivoElement | ||
{ | ||
public W(string body, dict parameters) | ||
: base(body, parameters) | ||
{ | ||
Nestables = new list() { | ||
"Break", | ||
"Emphasis", | ||
"Phoneme", | ||
"Prosody", | ||
"SayAs", | ||
"Sub" | ||
}; | ||
ValidAttributes = new list() | ||
{ | ||
"role", | ||
}; | ||
addAttributes(); | ||
} | ||
} | ||
} |