Skip to content

Commit

Permalink
[respeaker_ros] Add parameters for speech_to_text
Browse files Browse the repository at this point in the history
  • Loading branch information
iory authored and knorth55 committed Jun 14, 2022
1 parent d19b9e5 commit e2bb5c6
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions respeaker_ros/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,60 @@ A ROS Package for Respeaker Mic Array
If this value is `True`, suppress error from pyaudio.
## Parameters for speech_to_text.py
- ### Publishing topics
- `~speech_to_text` (`speech_recognition_msgs/SpeechRecognitionCandidates`)
Recognized text.
- ### Subscribing topics
- `audio` (`audio_common_msgs/AudioData`)
Input audio.
- ### Parameters
- `~audio_info` (`String`, default: ``)
audio_info (`audio_common_msgs/AudioInfo`) topic. If this value is specified, `~sample_rate`, `~sample_width` and `~channels` parameters are obtained from the topic.
- `~sample_rate` (`Int`, default: `16000`)
Sampling rate.
- `~sample_width` (`Int`, default: `2`)
Sample with.
- `~channels` (`Int`, default: `1`)
Number of channels.
- `~target_channel` (`Int`, default: `0`)
Target number of channel.
- `~language` (`String`, default: `ja-JP`)
language of speech to text service. For English users, you can specify `en-US`.
- `~self_cancellation` (`Bool`, default: `True`)
ignore voice input while the robot is speaking.
- `~tts_tolerance` (`String`, default: `1.0`)
time to assume as SPEAKING after tts service is finished.
- `~tts_action_names` (`List[String]`, default: `['sound_play']`)
If `~self_chancellation` is `True`, this value will be used.
When the actions are active, do nothing with the callback that subscribes to `audio`.
## Use cases
### Voice Recognition
Expand Down

0 comments on commit e2bb5c6

Please sign in to comment.