SlideShare a Scribd company logo
1 of 31
All contents © MuleSoft, LLC
Build an Amazon Polly connector in 15
mins with MuleSoft
@alextheedom alextheedom
#Java2Mule
Alex Theedom
Principal Technical Instructor @ MuleSoft
Java Professional 15 yrs and Java Champion
All contents © MuleSoft, LLC
Watch a video of this slide presentation
www.bit.ly/InnovationOverCoding
All contents © MuleSoft, LLC
Java Connectivity
3
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
Build an Amazon Polly connector with MuleSoft
All contents © MuleSoft, LLC
Build an Amazon Polly connector with MuleSoft
All contents © MuleSoft, LLC
Build an Amazon Polly connector with MuleSoft
All contents © MuleSoft, LLC
Build an Amazon Polly connector with MuleSoft
All contents © MuleSoft, LLC
Build an Amazon Polly connector with MuleSoft
All contents © MuleSoft, LLC
Build an Amazon Polly connector with MuleSoft
All contents © MuleSoft, LLC
What are connectors?
15
#Java2Mule
Connectors
Written in Java using the Custom
Connector SDK
Connector framework generates a GUI
for easy config of connector
Library of code that encapsulates
connectivity to another system
All contents © MuleSoft, LLC
How is a connector used?
16
HTTP request
Connect to
Amazon
Polly
API
WWW
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
All contents © MuleSoft, LLC
API
All contents © MuleSoft, LLC
What is the Amazon Polly service?
24
Cloud Service
Synthesis Text to Speech
Multilingual
Amazon Polly Service
Neural Text-to-Speech
(NTTS) Voice
Build Speech-Enabled
Applications
Service Configuration
Connectivity Logic and
Instantiation
Service Invocation and
Voice Synthesization
All contents © MuleSoft, LLC
Amazon Polly Service Configuration
25
Not all regions support the
Amazon Polly service
AWS Region
Neural
Newscaster speaking styles
Standard
Conversational speaking styles
Engine
Bilingual Voices
Male and Female
Emma (British English)
Aditi (English and Hindi)
Voice
AWS Access Key
AWS Secret Key
AWS Keys
All contents © MuleSoft, LLC
Amazon Polly Service Synthesizing Speech Logic
26
Service Configuration
Connectivity Logic and
Instantiation
Service Invocation and Voice Synthesization
HTTP Request
Query parameter provides
Text to synthesize
Connector Instantiation
Creates an instance of the
PollyClient and Voice
Connector Operations
Create a SynthesizeSpeechRequest from
the Voice and Text then pass to the
PollyClient. Results in InputStream of
Synthesized text
HTTP Response
MP3 of text
Connection Provider
Voice Name, Engine, Access Key,
Access Secret, AWS Region
All contents © MuleSoft, LLC
Service Config, Connectivity Logic and Instantiation
27
#Java2Mule
All contents © MuleSoft, LLC
Service Config, Connectivity Logic and Instantiation
28
#Java2Mule
All contents © MuleSoft, LLC
Service Invocation and Voice Synthesization
#Java2Mule
All contents © MuleSoft, LLC 30
mule.is/CustomConnector
Create your training account to sign up for the free course
“Anypoint Platform Development: Fundamentals (Mule 4)”
Discover More
#Java2Mule
All contents © MuleSoft, LLC
Thank you!
@alextheedom alextheedom
#Java2Mule
Alex Theedom

More Related Content

Similar to Build an Amazon Polly connector in 15 mins with MuleSoft

Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...
Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...
Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...sumitahuja94
 
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...Angel Alberici
 
Dc meetup-pure-api-led-connectivity-16x9
Dc meetup-pure-api-led-connectivity-16x9Dc meetup-pure-api-led-connectivity-16x9
Dc meetup-pure-api-led-connectivity-16x9Bruce Schonk -PMP, MBA
 
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...Amazon Web Services
 
API Force Presentation
API Force PresentationAPI Force Presentation
API Force PresentationAmir Khan
 
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__finalMule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__finalSubhash Patel
 
Operate Containers with AWS Copilot
Operate Containers with AWS CopilotOperate Containers with AWS Copilot
Operate Containers with AWS CopilotDevOps Indonesia
 
São Paulo MuleSoft Meetup #5 - Runtime Fabric
São Paulo MuleSoft Meetup #5 - Runtime FabricSão Paulo MuleSoft Meetup #5 - Runtime Fabric
São Paulo MuleSoft Meetup #5 - Runtime FabricGuilherme Pereira Silva
 
MuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysMuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysAngel Alberici
 
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summit Singapore 2019 | Microsoft DevOps on AWSAWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summit Singapore 2019 | Microsoft DevOps on AWSAWS Summits
 
MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...
MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...
MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...Jitendra Bafna
 
Running and Managing Mule Applications
Running and Managing Mule ApplicationsRunning and Managing Mule Applications
Running and Managing Mule ApplicationsMuleSoft
 
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...Angel Alberici
 
Mobile Development integration tests
Mobile Development integration testsMobile Development integration tests
Mobile Development integration testsKenneth Poon
 
Bangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - ManiBangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - ManiMani Chandrasekaran
 
Manila MuleSoft Meetup - July 2019
Manila MuleSoft Meetup - July 2019Manila MuleSoft Meetup - July 2019
Manila MuleSoft Meetup - July 2019Ryan Anthony Andal
 
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
20201012 - Serverless Architecture Conference - Deploying serverless applicat...20201012 - Serverless Architecture Conference - Deploying serverless applicat...
20201012 - Serverless Architecture Conference - Deploying serverless applicat...Marcia Villalba
 
AWS 如何協助客戶建立 DevOps 流程
AWS 如何協助客戶建立 DevOps 流程AWS 如何協助客戶建立 DevOps 流程
AWS 如何協助客戶建立 DevOps 流程Amazon Web Services
 
How-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWS
How-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWSHow-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWS
How-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWSAmazon Web Services
 

Similar to Build an Amazon Polly connector in 15 mins with MuleSoft (20)

Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...
Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...
Kochi Mulesoft Meetup #10 - MuleSoft Composer: Connect apps and data easily w...
 
mulecomposer.pdf
mulecomposer.pdfmulecomposer.pdf
mulecomposer.pdf
 
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
Sustainability Challenge, Postman, Rest sheet and Anypoint provider : MuleSof...
 
Dc meetup-pure-api-led-connectivity-16x9
Dc meetup-pure-api-led-connectivity-16x9Dc meetup-pure-api-led-connectivity-16x9
Dc meetup-pure-api-led-connectivity-16x9
 
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
Translating Web Content Easily with Language Services from AWS (AIM348) - AWS...
 
API Force Presentation
API Force PresentationAPI Force Presentation
API Force Presentation
 
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__finalMule soft meetup_virtual_ 3_charlotte_07july_2021__final
Mule soft meetup_virtual_ 3_charlotte_07july_2021__final
 
Operate Containers with AWS Copilot
Operate Containers with AWS CopilotOperate Containers with AWS Copilot
Operate Containers with AWS Copilot
 
São Paulo MuleSoft Meetup #5 - Runtime Fabric
São Paulo MuleSoft Meetup #5 - Runtime FabricSão Paulo MuleSoft Meetup #5 - Runtime Fabric
São Paulo MuleSoft Meetup #5 - Runtime Fabric
 
MuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleysMuleSoft Sizing Guidelines - VirtualMuleys
MuleSoft Sizing Guidelines - VirtualMuleys
 
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summit Singapore 2019 | Microsoft DevOps on AWSAWS Summit Singapore 2019 | Microsoft DevOps on AWS
AWS Summit Singapore 2019 | Microsoft DevOps on AWS
 
MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...
MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...
MuleSoft Surat Virtual Meetup#38 - Deep Dive into Anypoint API Proxy Options ...
 
Running and Managing Mule Applications
Running and Managing Mule ApplicationsRunning and Managing Mule Applications
Running and Managing Mule Applications
 
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
Mule 4 migration + Common Integration Challenges : MuleSoft Virtual Muleys Me...
 
Mobile Development integration tests
Mobile Development integration testsMobile Development integration tests
Mobile Development integration tests
 
Bangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - ManiBangalore Cloud Foundry meetup - Mani
Bangalore Cloud Foundry meetup - Mani
 
Manila MuleSoft Meetup - July 2019
Manila MuleSoft Meetup - July 2019Manila MuleSoft Meetup - July 2019
Manila MuleSoft Meetup - July 2019
 
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
20201012 - Serverless Architecture Conference - Deploying serverless applicat...20201012 - Serverless Architecture Conference - Deploying serverless applicat...
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
 
AWS 如何協助客戶建立 DevOps 流程
AWS 如何協助客戶建立 DevOps 流程AWS 如何協助客戶建立 DevOps 流程
AWS 如何協助客戶建立 DevOps 流程
 
How-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWS
How-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWSHow-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWS
How-to-encourage-App-Team-to-adopt-DevOps-flow-on-AWS
 

More from Alex Theedom

Java EE 8 security and JSON binding API
Java EE 8 security and JSON binding APIJava EE 8 security and JSON binding API
Java EE 8 security and JSON binding APIAlex Theedom
 
JDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to you
JDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to youJDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to you
JDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to youAlex Theedom
 
Java EE 8: What Servlet 4.0 and HTTP2 mean to you
Java EE 8: What Servlet 4.0 and HTTP2 mean to youJava EE 8: What Servlet 4.0 and HTTP2 mean to you
Java EE 8: What Servlet 4.0 and HTTP2 mean to youAlex Theedom
 
Java EE 8: What Servlet 4 and HTTP2 Mean
Java EE 8: What Servlet 4 and HTTP2 MeanJava EE 8: What Servlet 4 and HTTP2 Mean
Java EE 8: What Servlet 4 and HTTP2 MeanAlex Theedom
 
SE2016 - Java EE revisits design patterns 2016
SE2016 - Java EE revisits design patterns 2016SE2016 - Java EE revisits design patterns 2016
SE2016 - Java EE revisits design patterns 2016Alex Theedom
 
Java EE revisits design patterns
Java EE revisits design patternsJava EE revisits design patterns
Java EE revisits design patternsAlex Theedom
 
Java EE revisits design patterns
Java EE revisits design patterns Java EE revisits design patterns
Java EE revisits design patterns Alex Theedom
 
Java EE Revisits Design Patterns
Java EE Revisits Design PatternsJava EE Revisits Design Patterns
Java EE Revisits Design PatternsAlex Theedom
 
Java EE 8: What Servlet 4.0 and HTTP/2 mean to you
Java EE 8: What Servlet 4.0 and HTTP/2 mean to youJava EE 8: What Servlet 4.0 and HTTP/2 mean to you
Java EE 8: What Servlet 4.0 and HTTP/2 mean to youAlex Theedom
 
Java EE changes design pattern implementation: JavaDays Kiev 2015
Java EE changes design pattern implementation: JavaDays Kiev 2015Java EE changes design pattern implementation: JavaDays Kiev 2015
Java EE changes design pattern implementation: JavaDays Kiev 2015Alex Theedom
 
Mobile Java with GWT: Still "Write Once, Run Everywhere"
Mobile Java with GWT: Still "Write Once, Run Everywhere"Mobile Java with GWT: Still "Write Once, Run Everywhere"
Mobile Java with GWT: Still "Write Once, Run Everywhere"Alex Theedom
 
Jersey Coders New Term Introduction
Jersey Coders New Term IntroductionJersey Coders New Term Introduction
Jersey Coders New Term IntroductionAlex Theedom
 
Devoxx UK 2015: How Java EE has changed pattern implementation
Devoxx UK 2015: How Java EE has changed pattern implementationDevoxx UK 2015: How Java EE has changed pattern implementation
Devoxx UK 2015: How Java EE has changed pattern implementationAlex Theedom
 
Java days Lviv 2015
Java days Lviv 2015Java days Lviv 2015
Java days Lviv 2015Alex Theedom
 

More from Alex Theedom (15)

Java EE 8 security and JSON binding API
Java EE 8 security and JSON binding APIJava EE 8 security and JSON binding API
Java EE 8 security and JSON binding API
 
JDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to you
JDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to youJDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to you
JDKIO: Java EE 8 what Servlet 4 and HTTP2 mean to you
 
Java EE 8: What Servlet 4.0 and HTTP2 mean to you
Java EE 8: What Servlet 4.0 and HTTP2 mean to youJava EE 8: What Servlet 4.0 and HTTP2 mean to you
Java EE 8: What Servlet 4.0 and HTTP2 mean to you
 
Java EE 8: What Servlet 4 and HTTP2 Mean
Java EE 8: What Servlet 4 and HTTP2 MeanJava EE 8: What Servlet 4 and HTTP2 Mean
Java EE 8: What Servlet 4 and HTTP2 Mean
 
SE2016 - Java EE revisits design patterns 2016
SE2016 - Java EE revisits design patterns 2016SE2016 - Java EE revisits design patterns 2016
SE2016 - Java EE revisits design patterns 2016
 
Java EE revisits design patterns
Java EE revisits design patternsJava EE revisits design patterns
Java EE revisits design patterns
 
Java EE revisits design patterns
Java EE revisits design patterns Java EE revisits design patterns
Java EE revisits design patterns
 
Java EE Revisits Design Patterns
Java EE Revisits Design PatternsJava EE Revisits Design Patterns
Java EE Revisits Design Patterns
 
Java EE 8: What Servlet 4.0 and HTTP/2 mean to you
Java EE 8: What Servlet 4.0 and HTTP/2 mean to youJava EE 8: What Servlet 4.0 and HTTP/2 mean to you
Java EE 8: What Servlet 4.0 and HTTP/2 mean to you
 
jDays Sweden 2016
jDays Sweden 2016jDays Sweden 2016
jDays Sweden 2016
 
Java EE changes design pattern implementation: JavaDays Kiev 2015
Java EE changes design pattern implementation: JavaDays Kiev 2015Java EE changes design pattern implementation: JavaDays Kiev 2015
Java EE changes design pattern implementation: JavaDays Kiev 2015
 
Mobile Java with GWT: Still "Write Once, Run Everywhere"
Mobile Java with GWT: Still "Write Once, Run Everywhere"Mobile Java with GWT: Still "Write Once, Run Everywhere"
Mobile Java with GWT: Still "Write Once, Run Everywhere"
 
Jersey Coders New Term Introduction
Jersey Coders New Term IntroductionJersey Coders New Term Introduction
Jersey Coders New Term Introduction
 
Devoxx UK 2015: How Java EE has changed pattern implementation
Devoxx UK 2015: How Java EE has changed pattern implementationDevoxx UK 2015: How Java EE has changed pattern implementation
Devoxx UK 2015: How Java EE has changed pattern implementation
 
Java days Lviv 2015
Java days Lviv 2015Java days Lviv 2015
Java days Lviv 2015
 

Recently uploaded

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Build an Amazon Polly connector in 15 mins with MuleSoft

  • 1. All contents © MuleSoft, LLC Build an Amazon Polly connector in 15 mins with MuleSoft @alextheedom alextheedom #Java2Mule Alex Theedom Principal Technical Instructor @ MuleSoft Java Professional 15 yrs and Java Champion
  • 2. All contents © MuleSoft, LLC Watch a video of this slide presentation www.bit.ly/InnovationOverCoding
  • 3. All contents © MuleSoft, LLC Java Connectivity 3
  • 4. All contents © MuleSoft, LLC
  • 5. All contents © MuleSoft, LLC
  • 6. All contents © MuleSoft, LLC
  • 7. All contents © MuleSoft, LLC
  • 8. All contents © MuleSoft, LLC
  • 9. All contents © MuleSoft, LLC Build an Amazon Polly connector with MuleSoft
  • 10. All contents © MuleSoft, LLC Build an Amazon Polly connector with MuleSoft
  • 11. All contents © MuleSoft, LLC Build an Amazon Polly connector with MuleSoft
  • 12. All contents © MuleSoft, LLC Build an Amazon Polly connector with MuleSoft
  • 13. All contents © MuleSoft, LLC Build an Amazon Polly connector with MuleSoft
  • 14. All contents © MuleSoft, LLC Build an Amazon Polly connector with MuleSoft
  • 15. All contents © MuleSoft, LLC What are connectors? 15 #Java2Mule Connectors Written in Java using the Custom Connector SDK Connector framework generates a GUI for easy config of connector Library of code that encapsulates connectivity to another system
  • 16. All contents © MuleSoft, LLC How is a connector used? 16 HTTP request Connect to Amazon Polly API WWW
  • 17. All contents © MuleSoft, LLC
  • 18. All contents © MuleSoft, LLC
  • 19. All contents © MuleSoft, LLC
  • 20. All contents © MuleSoft, LLC
  • 21. All contents © MuleSoft, LLC
  • 22. All contents © MuleSoft, LLC
  • 23. All contents © MuleSoft, LLC API
  • 24. All contents © MuleSoft, LLC What is the Amazon Polly service? 24 Cloud Service Synthesis Text to Speech Multilingual Amazon Polly Service Neural Text-to-Speech (NTTS) Voice Build Speech-Enabled Applications Service Configuration Connectivity Logic and Instantiation Service Invocation and Voice Synthesization
  • 25. All contents © MuleSoft, LLC Amazon Polly Service Configuration 25 Not all regions support the Amazon Polly service AWS Region Neural Newscaster speaking styles Standard Conversational speaking styles Engine Bilingual Voices Male and Female Emma (British English) Aditi (English and Hindi) Voice AWS Access Key AWS Secret Key AWS Keys
  • 26. All contents © MuleSoft, LLC Amazon Polly Service Synthesizing Speech Logic 26 Service Configuration Connectivity Logic and Instantiation Service Invocation and Voice Synthesization HTTP Request Query parameter provides Text to synthesize Connector Instantiation Creates an instance of the PollyClient and Voice Connector Operations Create a SynthesizeSpeechRequest from the Voice and Text then pass to the PollyClient. Results in InputStream of Synthesized text HTTP Response MP3 of text Connection Provider Voice Name, Engine, Access Key, Access Secret, AWS Region
  • 27. All contents © MuleSoft, LLC Service Config, Connectivity Logic and Instantiation 27 #Java2Mule
  • 28. All contents © MuleSoft, LLC Service Config, Connectivity Logic and Instantiation 28 #Java2Mule
  • 29. All contents © MuleSoft, LLC Service Invocation and Voice Synthesization #Java2Mule
  • 30. All contents © MuleSoft, LLC 30 mule.is/CustomConnector Create your training account to sign up for the free course “Anypoint Platform Development: Fundamentals (Mule 4)” Discover More #Java2Mule
  • 31. All contents © MuleSoft, LLC Thank you! @alextheedom alextheedom #Java2Mule Alex Theedom

Editor's Notes

  1. Key points: Introduce the meetup, duration and Q&A at the end Introduce yourself and your professional background Mention social media channels and hash tag they can use during the presentation to tweet your thoughts Key message: Introduce the meetup with good hype and make everyone curious about what they are about to learn/see.
  2. Key points: Introduce the meetup, duration and Q&A at the end Introduce yourself and your professional background Mention social media channels and hash tag they can use during the presentation to tweet your thoughts Key message: Introduce the meetup with good hype and make everyone curious about what they are about to learn/see.
  3. How often have you written raw Java (imperative Java) connectivity code like this. To connect to a JDBC database or an AMQP resource such as RabbitMQ? If you are anything like me, then more times than you can count, no doubt. I used to spend hours writing and debugging and optimising such code for every project I worked on. Even though frameworks like Spring provide an abstraction over the need to program directly with the underlying packages, the repetitive nature of such work was unavoidable. Hello, my name is Alex Theedom I am a Java developer, architect and champion who now works exclusively with technology that minimises to almost nothing zero the effort required to write connectivity logic, freeing up time to focus on the more challenging and interesting work of innovation. In this short video I will introduce you to connectors, a technology used as part of the MuleSoft rapid development approach that simplifies the development of connectivity code and promotes its reuse throughout your developer teams. In just under 15 mins I will code a connector that encapsulates the connectivity logic for the Amazon Polly service and make it available for reuse by other developers and use it in a simple example API. Are you ready, well let's get started.
  4. Key message: A connector is a reusable library of Java code that encapsulates connectivity to another system First of all, what is a connector?. Conceptually, it’s a library of code that encapsulates connectivity to another system. That may be a Database, such as MongoDB, as shown here in the diagram, a File System, or a cloud Cloud Service, such as Amazon’s S3. They are written in Java using the Custom Connector SDK, an annotation based Java framework, provided by MuleSoft. The connector is published to a central repository called Exchange, which is back by Maven, and then becomes available to all developers within your organization. Those developers are now free to reuse the connector in their applications and APIs without having to recode the connectivity logic. The use of the connector is made easy by the way the connector framework auto generates a GUI that allows for the configuration of the connectors security details and configuration options. In fact, the developer does not need to be an expert in the underlying system to be able to reuse it, meaning he or she can spend more time innovating than writing the same connectivity logic over and over again. Lead out: Now let's have a look at how a connector is used in an API to connector to a Amazon cloud service. Library of code that encapsulates connectivity to another system Database (MongoDB), File System (SFTP), Cloud Service (AWS S3) Many connectors have already been written By MuleSoft, By Partners and by the community For key business systems (Salesforce, SAP, and Oracle and 100’s more) Written in Java using the Custom Connector SDK an annotation based Java framework for construction of connectors Connector framework generates a GUI that allows for easy configuration of connector Security details, configuration options Great opportunity to write contribute to the thriving MuleSoft open source connectors MuleSoft Community Connectors Lead out: Now let's have a look at how to code a customer connector in Java. One of my favorite AWS services is the Amazon polly service, which converts text to voice. You provide it with a string of text and it generates a sound file of those words spoken from a choice of different voices and languages.
  5. Key message: Connector is a building block that facilitates integration of external services in an application Now, one of my favorite AWS services is the Amazon polly service, this service converts text to voice. The way it works is that you provide it with a string of text and it generates an MP3 of those words, spoken from a choice of voices and languages. So you can imagine how this service can add some really innovative features to your applications. It's the kind of functionality that once added to one application you are going to get demand to add it to many more. Typically, this means writing the same connectivity logic to connect to the AWS service for each application that requires it, and even though AWS provides an SDK to facilitate coding, it can become repetitive very soon. This is where the connector comes into play. Imagine you have a connector that encapsulates the connectivity logic for establishing a connection, instantiating instances of voice and manages the interaction between your application and the Amazon Polly service. And imagine that you only have to code it once, because it becomes discovable and reusable throughout your organization, without any further involvement from yourself. What does this mean for you, what this means is that you are now freed to move on to new projects, new innovations, you are not stuck writing the same logic over and over again. For your organisation this means, they can leverage your skill and talent as a developer on innovations rather than on plumbing and integration code. This is what connectors and the MuleSoft rapid development approach is all about. In the diagram, you can see an HTTP request made to an API built using the MuleSoft visual application development tool. The application has a fully configured Amazon Polly Connector, in which Java connectivity logic is encapsulated. Text is passed to the service and a synthesized speech MP3 is returned to the API which it then passes in the body response to the original HTTP request. Here you have a perfect example of to use and reuse a connector to add a text to speech feature to your application. Lead out: Lets learn a little more about the Amazon Polly service before I should how to code a connector.
  6. Key Message: To explain the Polly service and show that it consists of two parts: Configuration and connectivity logic Amazon Polly is a cloud service capable of synthesising text into human-like speech in male and female voices and multiple languages. It includes Neural Text-to-Speech voices, that delivers improvements in speech quality through machine learning approaches, offering the most natural and lifelike voices possible. Typical use cases for Amazon Polly include, but are not limited to, speech-enabled mobile applications such as newsreaders, games, eLearning platforms, accessibility applications for visually impaired people, and the rapidly growing segment of IoT. When developing with the Polly service consider that it consists of two aspects. The first provides the service configuration, such as the voice and generation engine, and the logic for instantiating an instance of the service, the second invokes the service with the text and preconfigured service instance. This second aspect requests the text sythisation from the cloud service. Lead out: Now let's dive a little deeper and understand what the configuration details are before coding the connector.
  7. Key message: These are the configurations required by the service The Amazon Polly service requires minimal configuration. The voice configuration is the name of the voice and is mapped to a language and gender. Currently, there are 64 voices in 29 languages and accents. The engine determines if the voice should be generated in conversational or newsreader style. And final the AWS region and the access and secret keys. https://docs.aws.amazon.com/polly/ Lead out: Now let's have a look at how to code the connector and the classes it requires.
  8. Key message: These are the parts that make up the The first aspect of the Amazon Polly service connector I will developer is the connection provider. This provides the voice, engine, access key, access secret and the AWS region configuration. The connection provider is used by the Connector Connection to instantiate an instance of the Polly service and Voice. This concludes the Service Configuration Connectivity Logic and Instantiation aspect. The second aspect I will developer is the Connector operations.This invokes the preconfigured Polly service instance with the text to synthesize. The connector operation passes to the Polly service the text provided by a query parameter in an HTTP request,, and responses with an MP3 of the synthesized text. Lead out: Now that we know the Polly service well and how to develop a connector in theory, let's take a look at how to actually code a customer connector in Java.
  9. Key message: A class is translated by Anypoint studio into a GUI into which connection configurations are set Not need for the developer of the mule application to write connectivity logic This logic is taken care of in the ConnectionProvider class Let’s review. The MuleSoft connector SDK provides a framework for the creation of custom connectors that translates Java code into easy to use graphical user interfaces. For example, we have seen how the ConnectionProvider class acts as a template for the connector configuration interface. In our Amazon Polly connector, it provides a place to set the AWS keys and region, the voice and engine. There is no need for the MuleSoft developer to code connectivity logic because the Java developer has already provided this via the connector configuration.
  10. Key message: A class is translated by Anypoint studio into a GUI into which connection configurations are set Not need for the developer of the mule application to write connectivity logic This logic is taken care of in the ConnectionProvider class Let’s review. The MuleSoft connector SDK provides a framework for the creation of custom connectors that translates Java code into easy to use graphical user interfaces. For example, we have seen how the ConnectionProvider class acts as a template for the connector configuration interface. In our Amazon Polly connector, it provides a place to set the AWS keys and region, the voice and engine. There is no need for the MuleSoft developer to code connectivity logic because the Java developer has already provided this via the connector configuration.
  11. Key message: Another class into which specific use case configurations are set, in this case the text to vocalise, langage and name of the voice, this is translated into a GUI by Studio Once the connector has been configured the MuleSoft developer configures an instance of the Amazon Polly connector with the text to synthise. The AmazonPollyConnectorOperations class that provides the service invocation and returns the synthesized voice as an MP3 file to the Mule application which in turn packages up as in the body response to the original HTTP request. GitHUb Repo: https://github.com/atheedom/AWS-Polly-Custom-Connector
  12. Key Message: Sign up today to the self-paced course. Everyone needs to start its journey enrolling for the free class. CTA! Call to Action, the audience should go and enroll themselves into the training platform. So give them "orders"/directions, be kind but don't leave up to them the decision. Send this link in the chat window: https://training.mulesoft.com/site/signup.do?utm_source=level-2-presentation&utm_medium=end-of-meetup&utm_campaign=3rd-party-meetup&utm_term=Free-signup Also show the signup process and log into the course and show the course. Content creator notes: The QR codes used during this presentation were created with https://www.qrcode-monkey.com/
  13. Key points: Introduce the meetup, duration and Q&A at the end Introduce yourself and your professional background Mention social media channels and hash tag they can use during the presentation to tweet your thoughts Key message: Introduce the meetup with good hype and make everyone curious about what they are about to learn/see.