AwsPolly class abstract
A client used to initialize the instance and generate urls from an input.
Example on how to initialize:
final AwsPolly _awsPolly = AwsPolly.instance(
poolId: 'us-east-1:xxxx-xxx-xxxxx',
region: AWSRegionType.USEast1,
);
Example on how to generate a url:
final url = await _awsPolly.getUrl(
voiceId: AWSPolyVoiceId.nicole,
input: 'This is a sample text playing through Poly!',
);
Constructors
- AwsPolly()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getUrl(
{required String input, AWSPolyVoiceId voiceId}) → Future< String> -
Returns a string given the
input
andvoiceId
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
instance(
{required String poolId, AWSRegionType region = AWSRegionType.USEast1}) → AwsPolly - Create a static instance of the AwsPolly client.