-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[respeaker_ros] Add documentation for displaying Japanese /speech_to_text
#352
[respeaker_ros] Add documentation for displaying Japanese /speech_to_text
#352
Conversation
respeaker_ros/README.md
Outdated
rostopic echo /speech_to_text # Voice recognition | ||
# Voice recognition result for Japanese | ||
rostopic echo --filter "print(m.transcript[0])" /speech_to_text | ||
rostopic echo --filter "print('transcript: [%s]\n---'%(', '.join(map(lambda x: '\'%s\''%(x.decode('utf-8')), m.transcript))))" /speech_to_text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work with python3 (noetic)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, it doesn't work with python3. Thank you for letting me know.
I drop this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have also confirmed that the others work well with python3.
rostopic echo /speech_to_text # Voice recognition | ||
# Voice recognition result for Japanese | ||
rostopic echo --filter "print(m.transcript[0])" /speech_to_text | ||
rostopic echo /speech_to_text | ascii2uni -a U -q |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rostopic echo --filter "print('transcript: [%s]\n---'%(', '.join(map(str, m.transcript))))" /speech_to_text
is good?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok to use it. I'll add.
This PR adds documentation for getting readable Japanese voice recognition results from
rostopic echo
.Users sometimes had a problem that they don't know making Japanese voice recognition results readable through
rostopic echo
and where the example code is.Examples
c.f. jsk-ros-pkg/jsk_demos#1347 (comment), jsk-ros-pkg/jsk_demos#1347 (comment)