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

Updating audio sinks #15113

Closed
13 tasks done
lolodomo opened this issue Jun 18, 2023 · 28 comments
Closed
13 tasks done

Updating audio sinks #15113

lolodomo opened this issue Jun 18, 2023 · 28 comments
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@lolodomo
Copy link
Contributor

lolodomo commented Jun 18, 2023

Core PR openhab/openhab-core#3461 improved audio feature and allows a simplification for audio sinks and support for more audio streams.

There is a pending discussion with @dalgwen if URLAudioStream should be proxied or not by the openHAB server. I am not very favorable to that option.

@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Jun 18, 2023
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 18, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo lolodomo changed the title Simplifying audio sinks Updating audio sinks Jun 18, 2023
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 18, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
…ervlet

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
…ervlet

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jun 19, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

@dalgwen : you said in another issue that you will provide a PR for Chromecast, doorbell and pulseaudio. So I do not update these ones. It will be interesting to see if your proposed "pattern" is identical to mine. You are welcome to comment the PRs I have already submitted.

@dalgwen
Copy link
Contributor

dalgwen commented Jun 30, 2023

@lolodomo
I think you will want to kill me, because I have another pending pull request for an audio enhancement in core.
When I made the mimic TTS simplification relatives to core-3461, I found that I couldn't make all the simplification I wanted (I wanted to get rid of FixedLengthInputStream but couldn't) because the length() information was important further in the sink process method I tried (pulseaudio).
And in mimic I don't want to use FixedLength, because the stream is not cloneable, as it is not a file (which is a huge part of the audio simplification goal...)
So as we discussed in one previous comment some time ago, there is a real need to split the length information from the FixedLength class... new PR...
The PR is simple, but time is lacking before the 4.0 release...

lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jul 1, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jul 1, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jul 1, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jul 1, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

lolodomo commented Jul 1, 2023

I just reviewed your new PR.

And in mimic I don't want to use FixedLength, because the stream is not cloneable, as it is not a file (which is a huge part of the audio simplification goal...)

In my VoiceRSS PR, when TTS cache is disabled, I simply provide an AudioStream and it seemed to work well with the Sonos sink.
So, considering your new PR, I will have to also implement SizeableAudioStream as the service knows the stream length.

@dalgwen
Copy link
Contributor

dalgwen commented Jul 1, 2023

In my VoiceRSS PR, when TTS cache is disabled, I simply provide an AudioStream and it seemed to work well with the Sonos sink. So, considering your new PR, I will have to also implement SizeableAudioStream as the service knows the stream length.

Not for all sink, but the size information could be valuable for some (the pulseaudio binding tries to get duration information from it). It is not mandatory, but length detection could fail and default to the stream consumption time. Not a big deal, it is still better than before.
I also know that, if we have the information, we set the length in the HTTP response header of the http server (I don't know if any binding using the http server really needs it).

kaikreuzer pushed a commit that referenced this issue Jul 2, 2023
…#15116)

* [sonos] Audio sink supporting more audio streams

Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
kaikreuzer pushed a commit that referenced this issue Jul 2, 2023
#15122)

* [upnpcontrol] Support for more audio streams through the HTTP audio servlet

Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

lolodomo commented Jul 2, 2023

@dalgwen : your last core PR has just been merged. So we can start again updates of audio sinks and TTS services.

@dalgwen
Copy link
Contributor

dalgwen commented Jul 3, 2023

Great, it was fast !

I'm taking doorbird and pulseaudio in top priority, as I am the sink's creator for both of them. Maybe today or tomorrow.
I have something nearly ready on chromecast too.

If I have time, I could take squeezebox and kodi, as I use them at home (but not for their sink capability)

lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jul 8, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
lolodomo added a commit to lolodomo/openhab-addons that referenced this issue Jul 8, 2023
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@lolodomo
Copy link
Contributor Author

lolodomo commented Jul 8, 2023

@clinique : I don't know what Freebox player do you own but in case you have one that is not a Freebox Revolution and that supports AirPlay, you are welcome to test the audio sink feature with the freeboxos binding.

@lolodomo
Copy link
Contributor Author

@jlaur : in case you have some time, can you please help merging all the remaining opened PRs listed in this issue ?

@jlaur
Copy link
Contributor

jlaur commented Jul 12, 2023

@jlaur : in case you have some time, can you please help merging all the remaining opened PRs listed in this issue ?

I'm on vacation until Sunday, so can't promise anything. I'm mostly on the phone, and it won't be sufficient for this. I might fire up my backup laptop one evening, but can't promise.

jlaur pushed a commit that referenced this issue Jul 12, 2023
Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
jlaur pushed a commit that referenced this issue Jul 12, 2023
…15196)

Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
kaikreuzer pushed a commit that referenced this issue Jul 12, 2023
…et (#15201)

* [allplay] Support for more audio streams through the HTTP audio servlet

Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@kaikreuzer
Copy link
Member

I don't want that @jlaur spoils his vacation too much - I'll take care of the remaining PRs!

kaikreuzer pushed a commit that referenced this issue Jul 12, 2023
…et (#15121)

Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
kaikreuzer pushed a commit that referenced this issue Jul 12, 2023
…#15117)

* [onkyo] Support for more audio streams through the HTTP audio servlet

Related to #15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
@kaikreuzer
Copy link
Member

All merged!

@lolodomo
Copy link
Contributor Author

Thank you @jlaur and @kaikreuzer

matchews pushed a commit to matchews/openhab-addons that referenced this issue Aug 9, 2023
…openhab#15116)

* [sonos] Audio sink supporting more audio streams

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Matt Myers <mmyers75@icloud.com>
matchews pushed a commit to matchews/openhab-addons that referenced this issue Aug 9, 2023
openhab#15122)

* [upnpcontrol] Support for more audio streams through the HTTP audio servlet

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Matt Myers <mmyers75@icloud.com>
matchews pushed a commit to matchews/openhab-addons that referenced this issue Aug 9, 2023
…et (openhab#15199)

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Matt Myers <mmyers75@icloud.com>
matchews pushed a commit to matchews/openhab-addons that referenced this issue Aug 9, 2023
…penhab#15192)

* [kodi] Support for more audio streams through the HTTP audio servlet

[kodi] Audio sink supporting more audio streams

Related to openhab#15113

---------

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Signed-off-by: Matt Myers <mmyers75@icloud.com>
@openhab-bot
Copy link
Collaborator

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/webaudio-not-working-when-trying-to-stream-webradio/148610/14

austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…openhab#15116)

* [sonos] Audio sink supporting more audio streams

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
openhab#15122)

* [upnpcontrol] Support for more audio streams through the HTTP audio servlet

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…et (openhab#15199)

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…penhab#15192)

* [kodi] Support for more audio streams through the HTTP audio servlet

[kodi] Audio sink supporting more audio streams

Related to openhab#15113

---------

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…penhab#15196)

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…et (openhab#15201)

* [allplay] Support for more audio streams through the HTTP audio servlet

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…et (openhab#15121)

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
austvik pushed a commit to austvik/openhab-addons that referenced this issue Mar 27, 2024
…openhab#15117)

* [onkyo] Support for more audio streams through the HTTP audio servlet

Related to openhab#15113

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

5 participants