From 76db1dadeaf0fe7dcc033b946e08072b45e14ebb Mon Sep 17 00:00:00 2001 From: Simon Schulz Date: Mon, 5 Jan 2015 12:59:38 +0100 Subject: [PATCH] test --- proto/sandbox/rst/audition/Phoneme.proto | 27 +++++++++++++++++++++ proto/sandbox/rst/audition/Utterance.proto | 39 ++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 proto/sandbox/rst/audition/Phoneme.proto create mode 100644 proto/sandbox/rst/audition/Utterance.proto diff --git a/proto/sandbox/rst/audition/Phoneme.proto b/proto/sandbox/rst/audition/Phoneme.proto new file mode 100644 index 0000000..275b8d7 --- /dev/null +++ b/proto/sandbox/rst/audition/Phoneme.proto @@ -0,0 +1,27 @@ +package rst.audition; + +option java_outer_classname = "PhonemeType"; + +/** + * Objects of this represent a single Phoneme/Duration pair + * + * A list of Elements from this datatype can be used to describe + * words or whole sentences of speech. + * + * @author Simon Schulz + * + */ + +message Phoneme { + + /** + * a single phone symbol (such as aI, E, C, R, _, ...) + */ + required string symbol = 1; + + /** + * the duration of this symbol in unsigned milliseconds + */ + required uint32 duration = 2; + +} diff --git a/proto/sandbox/rst/audition/Utterance.proto b/proto/sandbox/rst/audition/Utterance.proto new file mode 100644 index 0000000..b228ace --- /dev/null +++ b/proto/sandbox/rst/audition/Utterance.proto @@ -0,0 +1,39 @@ +package rst.audition; + +import "rst/audition/Phoneme.proto"; +import "rst/audition/SoundChunk.proto"; + +option java_outer_classname = "UtteranceType"; + +/** + * Objects of this represent a single Utterance of Speech + * + * The data describes a single utterance in three different forms: + * - phoneme[] describes the utterance as list of phone symbols/durations + * (useful for lip animation) + * - audio is a SoundChunk that can be played back on audio devices + * - text is a textual description of the encapsulated data + * + * @author Simon Schulz + * + */ + +message Utterance { + + /** + * a list of phonemes + */ + repeated Phoneme phonemes = 1; + + /** + * a chunk of audio data that can be played back + */ + required SoundChunk audio = 2; + + /** + * textual description of the audio file + */ + required string text = 3; + +} + -- 1.9.1