StartAwsPollyJob 2.0.0

Bundle
org.apache.nifi | nifi-aws-nar
Description
Trigger a AWS Polly job. It should be followed by GetAwsPollyJobStatus processor in order to monitor job status.
Tags
AWS, Amazon, ML, Machine Learning, Polly
Input Requirement
Supports Sensitive Dynamic Properties
false
  • Additional Details for StartAwsPollyJob 2.0.0

    Amazon Polly

    StartAwsPollyJob

    Amazon Polly is a service that turns text into lifelike speech, allowing you to create applications that talk, and build entirely new categories of speech-enabled products. Polly’s Text-to-Speech (TTS) service uses advanced deep learning technologies to synthesize natural sounding human speech. With dozens of lifelike voices across a broad set of languages, you can build speech-enabled applications that work in many different countries.

    Usage

    Amazon ML Processors are implemented to utilize ML services based on the official AWS API Reference. You can find example json payload in the documentation at the Request Syntax sections. For more details please check the official Polly API reference With this processor you will trigger a startSpeechSynthesisTask async call to Polly Service. You can define json payload as property or provide as a flow file content. Property has higher precedence. After the job is triggered the serialized json response will be written to the output flow file. The awsTaskId attribute will be populated, so it makes it easier to query job status by the corresponding get job status processor.

    JSON payload template - note that it can be simplified with the optional fields, check AWS documentation for more details - example:

    {
      "Engine": "string",
      "LanguageCode": "string",
      "LexiconNames": [
        "string"
      ],
      "OutputFormat": "string",
      "OutputS3BucketName": "string",
      "OutputS3KeyPrefix": "string",
      "SampleRate": "string",
      "SnsTopicArn": "string",
      "SpeechMarkTypes": [
        "string"
      ],
      "Text": "string",
      "TextType": "string",
      "VoiceId": "string"
    }
    
Properties
Relationships
Name Description
original Upon successful completion, the original FlowFile will be routed to this relationship.
success FlowFiles are routed to success relationship
failure FlowFiles are routed to failure relationship
Writes Attributes
Name Description
awsTaskId The task ID that can be used to poll for Job completion in GetAwsPollyJobStatus
See Also