___  ___    _ _    _  _ _____   _____
 / __|/ _ \  | | |  | || |_ _\ \ / / __|
| (_ | (_) | |_  _| | __ || | \ V /| _|
 \___|\___/    |_|  |_||_|___| \_/ |___|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Building a Flutter Speech to Text/Speech Recognizer Application

BY: @tensor | CREATED: March 16, 2019, 7:47 p.m. | VOTES: 309 | PAYOUT: $49.98 | [ VOTE ]

[IMAGE: https://cdn.steemitimages.com/DQmQt8EhaAMsDyfUiZvBnvfXZvi62vkTmiww4siZ1QPmBfW/image.png]

Repository

https://github.com/flutter/flutter

What Will I Learn?

Requirements

System Requirements:
OS Support for Flutter:

Required Knowledge

Resources for Flutter and this Project:

Sources:

Flutter Logo (Google): https://flutter.io/

Difficulty

Description

In this Flutter Video Tutorial, we build a simple Text to Speech/Speech Recognizer application using the Speech Recognizer Flutter Plugin. The application takes in speech from a microphone on the Phone. It them passes that sound to the platform layer of the current phone. This sound is passed through an existing iOS or Android API and then translated to text. Its then passed back to the flutter layer of the application. We put this text into a box and display it to the user.

Sending and Receiving Platform Messages With Flutter

For the functionality of this application to work properly, the plugin needs to fully make use of Platform Messages and Channels. These Platform Messages provide us with a simple mechanism for communicating with platform specific APIs from iOS and Android. In this case, we are communicating with the speech recognition API that is a part of both platforms. For this to work properly, we need to define a bunch of callback functions for what our app should do in response to receiving and sending messages back and forth between the platforms.

[IMAGE: https://cdn.steemitimages.com/DQmU6Wa2cLyTkgQSqPraUV7tKUed91i1bgnW2ofsyVKCQJ2/flutter-platform.png]

The above flowchart gives us a decent idea of how the flow of the application works in this case. Speech comes in through the microphone of the phone or computer. This speech is digitized into bytes and passed back to the platform. The platform feeds it through the API which converts it into text. This text is then returned back to the flutter layer where it is injected into the Text Widget in our UI.

Setting Up the Features for our Application

While the plugin takes care of much of the Platform side logic and we also define a set of callbacks to respond to these Platform channels; we need to define the set of features that we want in our application. There are some obvious features like a Play/Record button and a Stop function and there are some less obvious ones like the Cancel Button. The user pushes the Play/Record button to start the record functionality and then they can either press Cancel or Stop to terminate it. Stop maintains the text in the widget while cancel clears the Text Widget.

[IMAGE: https://cdn.steemitimages.com/DQmPFYR1irHZcBbno3kGbp5CurJbveMA2UWjQ6oagGEQ51q/speech-phone.png]

Our three functionalities are tied to the three buttons in our application. The middle button activates the record functionality, the left button activates the cancel functionality and the right button stops recording. The small blue box at the bottom of the buttons is the Text widget and it fills up with the text that is sent back from the platform while the user is speaking.

The Source Code for this video may be found here: https://github.com/tensor-programming/flutter_speech_to_text

Video Tutorial

Curriculum

Projects and Series

> ##### Stand Alone Projects:
> - Dart Flutter Cross Platform Chat Application Tutorial
> - Building a Temperature Conversion Application using Dart's Flutter Framework
> - Managing State with Flutter Flux and Building a Crypto Tracker Application with Dart's Flutter Framework
> ##### Utopian Rocks Example
> - Advanced Flutter Project - Setting Up the Basic Structure - Part One
> - Advanced Flutter Project - Adding a Second BloC - Part Two
> - Advanced Flutter Project - Best Practices - Generic BLoC Providers - Part Three
> - Advanced Flutter Project - Adding Fonts and Fuzzy Timestamps - Part Four
> - Advanced Flutter Project - Filtering Contributions and Building Aesthetics - Part Five
> ##### Building a Calculator
> - Building a Calculator Layout using Dart's Flutter Framework
> - Finishing our Calculator Application with Dart's Flutter Framework
> ##### Movie Searcher Application
> - Building a Movie Searcher with RxDart and SQLite in Dart's Flutter Framework (Part 1)
> - Building a Movie Searcher with RxDart and SQLite in Dart's Flutter Framework (Part 2)
> - Building a Movie Searcher with RxDart and SQLite in Dart's Flutter Framework (Part 3, Final)
> #### Minesweeper Game
> - Building a Mine Sweeper Game using Dart's Flutter Framework (Part 1)
> - Building a Mine Sweeper Game using Dart's Flutter Framework (Part 2)
> - Building a Mine Sweeper Game using Dart's Flutter Framework (Part 3)
> - Building a Mine Sweeper Game using Dart's Flutter Framework (Part 4, Final)
> #### Redux Todo App
> - Building a Todo/CRUD Application In Flutter With Redux - Part 3
> - Building a Todo/CRUD Application In Flutter With Redux - Part 2
> - Building a Todo/CRUD Application In Flutter With Redux - Part 1
> #### RxCommand Weather App
> - Building a Weather Application with Dart's Flutter Framework (Part 1, Handling Complex JSON with Built Code Generation)
> - Building a Weather Application with Dart's Flutter Framework (Part 2, Creating a Repository and Model)
> - Building a Weather Application with Dart's Flutter Framework (Part 3, RxCommand (RxDart) and Adding an Inherited Widget)
> - Building a Weather Application with Dart's Flutter Framework (Part 4, Using RxWidget to Build a Reactive User Interface)
> - Localize and Internationalize Applications with Intl and the Flutter SDK in Dart's Flutter Framework

Curriculum

Proof of Work Done

https://github.com/tensor-programming

TAGS: [ #utopian-io ] [ #video-tutorials ] [ #steemstem ] [ #programming ] [ #technology ]

Replies

@steemstem | March 17, 2019, 3:33 p.m. | Votes: 0 | [ VOTE ]

This post has been voted on by the SteemSTEM curation team and voting trail in collaboration with @curie.
If you appreciate the work we are doing then consider voting both projects for witness by selecting stem.witness and curie!
For additional information please join us on the SteemSTEM discord and to get to know the rest of the community!

@steem-plus | March 17, 2019, 7:55 p.m. | Votes: 0 | [ VOTE ]

Hi, @tensor!

You just got a 6.59% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

@rosatravels | March 18, 2019, 6:04 a.m. | Votes: 11 | [ VOTE ]

Hi @Tensor

Great to see another tutorial in the Flutter series.

I find this speech recognizer plugin for flutter a cool feature. The process of how this functions in terms of sending and receiving messages is very clear in your tutorial.

Thank you again for another great video tutorial contribution.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.

Need help? Chat with us on Discord.

[utopian-moderator]

@tensor | March 18, 2019, 11:08 a.m. | Votes: 0 | [ VOTE ]

Thank you @rosatravels, always a pleasure to read your comments.

@utopian-io | March 20, 2019, 10:18 a.m. | Votes: 0 | [ VOTE ]

Thank you for your review, @rosatravels! Keep up the good work!

@steem-ua | March 18, 2019, 6:26 a.m. | Votes: 1 | [ VOTE ]

Hi @tensor!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your post is eligible for our upvote, thanks to our collaboration with @utopian-io!
Feel free to join our @steem-ua Discord server

@utopian-io | March 19, 2019, 10:55 a.m. | Votes: 0 | [ VOTE ]

Hey, @tensor!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

@miyamilo | March 19, 2019, 5:18 p.m. | Votes: 0 | [ VOTE ]

holaaaaa yo quiero

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>