-
Notifications
You must be signed in to change notification settings - Fork 4
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
Stream sound in chunks of 1 sec instead of all at once. fixes #21 #65
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for the interest and contribution. Looks pretty good.
I've merged in #63, you should be able to rebase on master so that we can see if this passes CI. Also, you should put the "fixes issue #" in the description (not in the PR title) so that it will automatically link the associated issue. Also, make sure to sign-off so that you pass the DCO test.
It would also be great to add some tests, if you can. There are some examples in cordial_manager
.
@anandgokul18, when you've addressed my comments and made the DCO and CodeFactor pass, rerequest a review from me. As for the CI, it seems that our current setup doesn't work for external contributors. I'll look into this, but if you're ready first, we'll just add you as a contributor to the project so that you can run CI. |
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
ab50112
to
695a130
Compare
Hey, CI should be fixed by #69. Please try rebasing your commits on the |
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.
Try rebasing on master so that #69 can be applied and then I'll take another look.
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
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.
Your commit history has one of my commits in it, which makes the diff weird, as a bunch of files from that commit are included in this PR. See if you can figure out how to remove my commit. It probably involves reverting my commit, pulling from this remote's master branch (i.e., https://github.com/robotpt/cordial.git
), and then rebasing your work on this this remote's master branch.
If you have questions, feel free to use the same link as before to schedule a meeting together.
22f90df
to
695a130
Compare
695a130
to
8126caf
Compare
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
633a1a6
to
88faa4f
Compare
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
…into anandgokul18
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.
Looks better. A few more parameter related changes. You should also make a parameter yaml file with good defaults and load it into the launch file. This will help us use this change in the rest of the system.
If you can figure out how, it would be great to include tests or a video on the PR chat of this working.
@@ -29,10 +29,8 @@ def play_sound(data): | |||
|
|||
p = pyaudio.PyAudio() | |||
|
|||
""" |
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 don't think this change is necessary - it's good to keep the diff small so it's easy to see what has happened.
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.
This was showing up as an issue in Codefactor. That's why I had to change it
@emilyxzhou, I've asked for a few small changes. Would you take a look and perhaps review and test it out for yourself? |
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
3459c04
to
44bd29b
Compare
Signed-off-by: Anand Gokul <anandgokul18@gmail.com>
7422096
to
cd406b0
Compare
I tested this out on my QT, looks good! |
Sending the audio file in chunks of 1 sec each instead of at once so that it can be interrupted immediately. Also, setting sleep on the listener to 20 Hertz