-
Notifications
You must be signed in to change notification settings - Fork 124
RSDK-12147 Audio Out component #5373
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
base: main
Are you sure you want to change the base?
Conversation
@oliviamiller This PR also includes audioin diff, should we just review audioout related changes here? |
Yeah I branched off audioin since there is some shared code, you can just review audioout here or hold off on reviewing until the audioin PR is merged. |
got it i'll wait until the audioin changes are finalized and the diff is less confusing |
// SubtypeName is a constant that identifies the audio out resource subtype string. | ||
const SubtypeName = "audio_out" | ||
|
||
// API is a variable that identifies the audio input resource API. |
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 should say the audio output, right?
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.
yep, thanks for catching
@@ -0,0 +1,188 @@ | |||
package audioout_test |
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.
Nice testing :)
// Properties defines properties of an audio device. | ||
type Properties struct { | ||
SupportedCodecs []string | ||
SampleRate int32 |
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.
Can this be renamed to SampleRateHz?
// AudioInfo defines information about audio data. | ||
type AudioInfo struct { | ||
Codec string | ||
SampleRate int32 |
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.
Same here, SampleRateHz
func AudioInfoPBToStruct(pb *commonpb.AudioInfo) *AudioInfo { | ||
return &AudioInfo{ | ||
Codec: pb.Codec, | ||
SampleRate: pb.SampleRate, |
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.
SampleRateHz
func AudioInfoStructToPb(info *AudioInfo) *commonpb.AudioInfo { | ||
return &commonpb.AudioInfo{ | ||
Codec: info.Codec, | ||
SampleRate: info.SampleRate, |
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.
SampleRateHz
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c | ||
) | ||
|
||
replace go.viam.com/api => ../api |
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 is temporary while the proto API is not submitted, right?
please review #5369 first.
Scope: https://docs.google.com/document/d/1dEurb36y4Aysdj17imofuZwEZlGpC_I4l5D6bmN4Igw/edit?tab=t.0