Giter VIP home page Giter VIP logo

speech_recognized_dictionary's Introduction

Speech_Recognized_Dictionary

A speech recognized dictionary

It uses basic speech recognition to take input in particular format, then extract the word from that sentence and then pass that word to form a Url to hit google dictionary API to get the information related to the word.

The response part consist for the links to speech and the meaning of the word with part of speech, definition and example.

Respose message example:

[{'word': 'convey', 'phonetics': [{'text': '/kənˈveɪ/', 'audio': 'https://lex-audio.useremarkable.com/mp3/xconvey_us_1.mp3'}], 'meanings': [{'partOfSpeech': 'transitive verb', 'definitions': [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer'] }]}]}]

Working Log of the project:

INFO:root:creating a speech recognizer Ask for word meaning INFO:root:Prompting user to ask in particular format INFO:root:recognizing the sentence recognizer INFO:root:returning the spoken sentence INFO:root:sentence recognized is meaning of convey INFO:root:sentence passed is meaning of convey INFO:root:splitting from the of word INFO:root: list after splitting of the sentence from the 'of' word and list is ['meaning ', ' convey'] INFO:root:word recognized is convey INFO:root:language code en and word convey is passed INFO:root:url created is https://api.dictionaryapi.dev/api/v2/entries/en/convey INFO:root:url formed is https://api.dictionaryapi.dev/api/v2/entries/en/convey INFO:root:url passed is https://api.dictionaryapi.dev/api/v2/entries/en/convey transitive verb [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer']}] INFO:root:data in json form [{'word': 'convey', 'phonetics': [{'text': '/kənˈveɪ/', 'audio': 'https://lex-audio.useremarkable.com/mp3/xconvey_us_1.mp3'}], 'meanings': [{'partOfSpeech': 'transitive verb', 'definitions': [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer']}]}]}] INFO:root:data extracted is [{'word': 'convey', 'phonetics': [{'text': '/kənˈveɪ/', 'audio': 'https://lex-audio.useremarkable.com/mp3/xconvey_us_1.mp3'}], 'meanings': [{'partOfSpeech': 'transitive verb', 'definitions': [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer']}]}]}] INFO:root:json data passed [{'word': 'convey', 'phonetics': [{'text': '/kənˈveɪ/', 'audio': 'https://lex-audio.useremarkable.com/mp3/xconvey_us_1.mp3'}], 'meanings': [{'partOfSpeech': 'transitive verb', 'definitions': [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer']}]}]}] INFO:root: audio item extracted https://lex-audio.useremarkable.com/mp3/xconvey_us_1.mp3 INFO:root:Extracting meaning from json data INFO:root:meaning list passed [{'partOfSpeech': 'transitive verb', 'definitions': [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer']}]}] INFO:root:definition dict created is {'transitive verb': [{'definition': 'Transport or carry to a place.', 'example': 'pipes were laid to convey water to the house', 'synonyms': ['transport', 'carry', 'bring', 'take', 'fetch', 'bear', 'move', 'ferry', 'shuttle', 'shift', 'transfer']}]}

Happy to see additions to this.

speech_recognized_dictionary's People

Contributors

sharmaakshay177 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.