Skip to content
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

Replace numbers and alphabets in text file for aques_talk to speak numbers #229

Merged
merged 4 commits into from
Dec 22, 2020

Conversation

708yamaguchi
Copy link
Member

@708yamaguchi 708yamaguchi commented Dec 19, 2020

I replace numbers in text file for aques_talk to speak numbers. I add sed command like following.

$ echo こんにちわ | sed -e 's/\([a-zA-Z]\+\)/<ALPHA VAL=\1>/g' | sed -e 's/\([0-9]\+\)/<NUMK VAL=\1>/g'
こんにちわ
$ echo 私の名前わ、fetch15です。 | sed -e 's/\([a-zA-Z]\+\)/<ALPHA VAL=\1>/g' | sed -e 's/\([0-9]\+\)/<NUMK VAL=\1>/g'
私の名前わ、<ALPHA VAL=fetch><NUMK VAL=15>です。

For example,

$ roslaunch aques_talk aques_talk.launch
$ rostopic pub /robotsound_jp  sound_play/SoundRequest "{sound: -3, command: 1, volume: 10.0, arg: '私の名前わ、fetch15です。', arg2: ''}"

@708yamaguchi 708yamaguchi changed the title Replace numbers in text file for aques_talk to speak numbers Replace numbers and alphabets in text file for aques_talk to speak numbers Dec 19, 2020
@k-okada k-okada merged commit d486ddd into jsk-ros-pkg:master Dec 22, 2020
@knorth55 knorth55 linked an issue Dec 25, 2020 that may be closed by this pull request
@708yamaguchi 708yamaguchi deleted the enable-number branch November 24, 2021 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aques_talk cannot speak numbers and alphabets
3 participants