Giter Site home page Giter Site logo

stt_nlu_ros's Introduction

STT_NLU_ROS

Install & Run

Prerequisites

  • ROS (tested with Melodic)
  • Docker

Run

  • STT
sudo ./run.sh # Run the Whisper.cpp container with audio streaming from microphone
  • Action server with NLU and inputs from STT
rosrun stt_nlu_node STT_NLU_server_node.py
  • Code exemple (action client) to test the solution
rosrun stt_nlu_node client_exemple.py

Errors

Because I use ROS melodic, I had to run the script in python 2.7, and I had to do this:

sudo pip uninstall backports.ssl-match-hostname
sudo apt-get install python-backports.ssl-match-hostname

Warning

For now, the action server listen to whisper.cpp though docker logs (python API)... which is ugly... I know... but until I do something better, it works very well !

Messages

action : NLExpectations.action

#goal
stt_nlu_msgs/Goals_NLU waitfor
---
#result
stt_nlu_msgs/Results_NLU answer
---
#feedback
int32 feedback

msg : stt_nlu_msgs/Goals_NLU :

# answers to expect
string[] person         # e.g. ['John', 'Alex', 'Tom']
string[] object         # e.g. ['Book', 'Cup', 'Sponge']
string[] drink          # e.g. ['Coke', 'Beer', 'Coffee']
string[] location       # e.g. ['Living room', 'Bedroom', 'Kitchen']
string[] action         # e.g. ['Go', 'Take', 'Give']
std_msgs/Bool ack       # e.g. True (wait for a yes/no answser with variants like 'okay', 'ok', ...

msg : stt_nlu_msgs/Results_NLU

# Answer (Best match) for each category with data and confidence (confidence is always 1 for the moment) 
stt_nlu_msgs/Result_items person
stt_nlu_msgs/Result_items object
stt_nlu_msgs/Result_items drink
stt_nlu_msgs/Result_items location
stt_nlu_msgs/Result_items action
stt_nlu_msgs/Result_items ack

msg : stt_nlu_msgs/Result_items

# word found
string data
# word confidence
float32 confidence

stt_nlu_ros's People

Contributors

m0rph03nix 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.