Repository navigation
Expand file tree
/
Copy pathDataModels.cs
More file actions
131 lines (126 loc) · 3.32 KB
/
Copy pathDataModels.cs
File metadata and controls
131 lines (126 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using FullSerializer;
namespace IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1
{
/// <summary>
/// Audio format types that can be requested from the service.
/// </summary>
public enum AudioFormatType
{
/// <summary>
/// OGG Vorbis format
/// </summary>
OGG = 0,
/// <summary>
/// Linear PCM format.
/// </summary>
WAV, //Currently used
/// <summary>
/// FLAC audio format.
/// </summary>
FLAC
};
/// <summary>
/// The available voices for synthesized speech.
/// </summary>
public enum VoiceType
{
/// <summary>
/// US male voice.
/// </summary>
en_US_Michael = 0,
/// <summary>
/// US female voice.
/// </summary>
en_US_Lisa,
/// <summary>
/// US female voice.
/// </summary>
en_US_Allison,
/// <summary>
/// Great Britan female voice.
/// </summary>
en_GB_Kate,
/// <summary>
/// Spanish male voice.
/// </summary>
es_ES_Enrique,
/// <summary>
/// Spanish female voice.
/// </summary>
es_ES_Laura,
/// <summary>
/// US female voice.
/// </summary>
es_US_Sofia,
/// <summary>
/// German male voice.
/// </summary>
de_DE_Dieter,
/// <summary>
/// German female voice.
/// </summary>
de_DE_Birgit,
/// <summary>
/// French female voice.
/// </summary>
fr_FR_Renee,
/// <summary>
/// Italian female voice.
/// </summary>
it_IT_Francesca,
/// <summary>
/// Japanese female voice.
/// </summary>
ja_JP_Emi,
};
/// <summary>
/// A voice model object for TextToSpeech.
/// </summary>
[fsObject]
public class Voice
{
/// <summary>
/// The name of the voice model.
/// </summary>
public string name { get; set; }
/// <summary>
/// The language ID of this voice model.
/// </summary>
public string language { get; set; }
/// <summary>
/// The gender of the voice model.
/// </summary>
public string gender { get; set; }
/// <summary>
/// The URL of the voice model.
/// </summary>
public string url { get; set; }
};
/// <summary>
/// This object contains a list of voices.
/// </summary>
[fsObject]
public class Voices
{
/// <summary>
/// The array of Voice objects.
/// </summary>
public Voice[] voices { get; set; }
};
}