@datafire/amazonaws_polly

5.0.0 • Public • Published

@datafire/amazonaws_polly

Client library for Amazon Polly

Installation and Usage

npm install --save @datafire/amazonaws_polly
let amazonaws_polly = require('@datafire/amazonaws_polly').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_polly.ListLexicons({}).then(data => {
  console.log(data);
});

Description

Amazon Polly is a web service that makes it easy to synthesize speech from text.

The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), along with managing pronunciations lexicons that enable you to get the best results for your application domain.

Actions

ListLexicons

amazonaws_polly.ListLexicons({}, context)

Input

  • input object

Output

DeleteLexicon

amazonaws_polly.DeleteLexicon({
  "LexiconName": ""
}, context)

Input

  • input object
    • LexiconName required string

Output

GetLexicon

amazonaws_polly.GetLexicon({
  "LexiconName": ""
}, context)

Input

  • input object
    • LexiconName required string

Output

PutLexicon

amazonaws_polly.PutLexicon({
  "LexiconName": "",
  "Content": ""
}, context)

Input

  • input object

Output

SynthesizeSpeech

amazonaws_polly.SynthesizeSpeech({
  "OutputFormat": "",
  "Text": "",
  "VoiceId": ""
}, context)

Input

Output

DescribeVoices

amazonaws_polly.DescribeVoices({}, context)

Input

  • input object

Output

Definitions

Alphabet

  • Alphabet string

AudioStream

  • AudioStream string

ContentType

  • ContentType string

DeleteLexiconInput

  • DeleteLexiconInput object

DeleteLexiconOutput

  • DeleteLexiconOutput object

DescribeVoicesInput

  • DescribeVoicesInput object

DescribeVoicesOutput

ErrorMessage

  • ErrorMessage string

Gender

  • Gender string (values: Female, Male)

GetLexiconInput

  • GetLexiconInput object

GetLexiconOutput

InvalidLexiconException

  • InvalidLexiconException object: Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.

InvalidNextTokenException

  • InvalidNextTokenException object: The NextToken is invalid. Verify that it's spelled correctly, and then try again.

InvalidSampleRateException

  • InvalidSampleRateException object: The specified sample rate is not valid.

InvalidSsmlException

  • InvalidSsmlException object: The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.

LanguageCode

  • LanguageCode string (values: cy-GB, da-DK, de-DE, en-AU, en-GB, en-GB-WLS, en-IN, en-US, es-ES, es-US, fr-CA, fr-FR, is-IS, it-IT, ko-KR, ja-JP, nb-NO, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sv-SE, tr-TR)

LanguageName

  • LanguageName string

LastModified

  • LastModified string

LexemesCount

  • LexemesCount integer

Lexicon

LexiconArn

  • LexiconArn string

LexiconAttributes

LexiconContent

  • LexiconContent string

LexiconDescription

LexiconDescriptionList

LexiconName

  • LexiconName string

LexiconNameList

LexiconNotFoundException

  • LexiconNotFoundException object:

    Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region.

    Verify that the lexicon exists, is in the region (see ListLexicons) and that you spelled its name is spelled correctly. Then try again.

LexiconSizeExceededException

  • LexiconSizeExceededException object: The maximum size of the specified lexicon would be exceeded by this operation.

ListLexiconsInput

  • ListLexiconsInput object

ListLexiconsOutput

MarksNotSupportedForFormatException

  • MarksNotSupportedForFormatException object: Speech marks are not supported for the OutputFormat selected. Speech marks are only available for content in json format.

MaxLexemeLengthExceededException

  • MaxLexemeLengthExceededException object: The maximum size of the lexeme would be exceeded by this operation.

MaxLexiconsNumberExceededException

  • MaxLexiconsNumberExceededException object: The maximum number of lexicons would be exceeded by this operation.

NextToken

  • NextToken string

OutputFormat

  • OutputFormat string (values: json, mp3, ogg_vorbis, pcm)

PutLexiconInput

PutLexiconOutput

  • PutLexiconOutput object

RequestCharacters

  • RequestCharacters integer

SampleRate

  • SampleRate string

ServiceFailureException

  • ServiceFailureException object: An unknown condition has caused a service failure.

Size

  • Size integer

SpeechMarkType

  • SpeechMarkType string (values: sentence, ssml, viseme, word)

SpeechMarkTypeList

SsmlMarksNotSupportedForTextTypeException

  • SsmlMarksNotSupportedForTextTypeException object: SSML speech marks are not supported for plain text-type input.

SynthesizeSpeechInput

SynthesizeSpeechOutput

  • SynthesizeSpeechOutput object

Text

  • Text string

TextLengthExceededException

  • TextLengthExceededException object: The value of the "Text" parameter is longer than the accepted limits. The limit for input text is a maximum of 3000 characters total, of which no more than 1500 can be billed characters. SSML tags are not counted as billed characters.

TextType

  • TextType string (values: ssml, text)

UnsupportedPlsAlphabetException

  • UnsupportedPlsAlphabetException object: The alphabet specified by the lexicon is not a supported alphabet. Valid values are x-sampa and ipa.

UnsupportedPlsLanguageException

  • UnsupportedPlsLanguageException object: The language specified in the lexicon is unsupported. For a list of supported languages, see Lexicon Attributes.

Voice

VoiceId

  • VoiceId string (values: Geraint, Gwyneth, Mads, Naja, Hans, Marlene, Nicole, Russell, Amy, Brian, Emma, Raveena, Ivy, Joanna, Joey, Justin, Kendra, Kimberly, Matthew, Salli, Conchita, Enrique, Miguel, Penelope, Chantal, Celine, Mathieu, Dora, Karl, Carla, Giorgio, Mizuki, Liv, Lotte, Ruben, Ewa, Jacek, Jan, Maja, Ricardo, Vitoria, Cristiano, Ines, Carmen, Maxim, Tatyana, Astrid, Filiz, Vicki, Takumi, Seoyeon, Aditi)

VoiceList

  • VoiceList array

VoiceName

  • VoiceName string

Readme

Keywords

none

Package Sidebar

Install

npm i @datafire/amazonaws_polly

Weekly Downloads

1

Version

5.0.0

License

MIT

Unpacked Size

49.3 kB

Total Files

5

Last publish

Collaborators

  • datafire