Class Audio
Inheritance
System.Object
Audio
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class Audio
Constructors
Audio()
Initializes a new instance of the Audio class.
Declaration
public Audio()
Audio(String, MemoryStream, Boolean)
Initializes a new instance of the Audio class.
Declaration
public Audio(string text, MemoryStream audioMemoryStream, bool isSpeakSuccess)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text. |
System.IO.MemoryStream | audioMemoryStream | The audioMemoryStream. |
System.Boolean | isSpeakSuccess | The isSpeakSuccess. |
Properties
AudioMemoryStream
Gets or sets the audio memory stream.
Declaration
public MemoryStream AudioMemoryStream { get; set; }
Property Value
Type | Description |
---|---|
System.IO.MemoryStream | The audio memory stream. |
IsSpeakSuccess
Gets or sets the speak success.
Declaration
public bool IsSpeakSuccess { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Text
Gets or sets the audio memory stream.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Methods
CombineAudio(List<String>)
Combines the audio.
Declaration
public MemoryStream CombineAudio(List<string> resourcePath)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.String> | resourcePath | The resource path. |
Returns
Type | Description |
---|---|
System.IO.MemoryStream | This method returns MemoryStream object value |
ConvertTextToAudio()
Declaration
public void ConvertTextToAudio()
GenerateAudioFromFile(String)
Generates audio from file.
Declaration
public MemoryStream GenerateAudioFromFile(string resourceLocation)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceLocation | The resource location. |
Returns
Type | Description |
---|---|
System.IO.MemoryStream | This method returns MemoryStream object value |