•   
  • 1
  • 3
  • 4
  • 5
  • 6
  • 7(current)
Release Audio Profiles (for Kodi 18 and later)
#91
(2020-08-09, 14:54)mblovell Wrote: (Would it be possible for auto-switching mode to switch back to the previous profile at the end of media playback?  This capability, unfortunately, wouldn't help with the stereo-vs-multi channel music setup, but it may be helpful in some scenarios.)
Sort of.  You can set a profile for the Kodi GUI, so anytime you exit back to the GUI you can have a specific profile. But that isn't quite "the previous" profile depending on what you were doing before you switched.
Reply
#92
(2020-08-09, 14:06)eldrik Wrote: Hi, 

stumbled over this perfect addon while searching for an audio switcher, one question can I switch through the profiles using kodi jsonrpc? And what would a json string look like?
Probably (that's the best answer I can give).

There is a JSONRPC call for ExecuteAddon:

https://kodi.wiki/view/JSON-RPC_API/v10#...ecuteAddon

You'll need to figure out how to send the extra parameter for "rotate through the audio profiles," which you can find in the Audio Profiles wiki:

https://kodi.wiki/view/Add-on:Audio_Prof...ng_Keymaps

The item after the comma in the RunScript command is the extra parameter you'd need to send.  I've never used the ExecuteAddon JSONRPC call, so I'm not sure exactly how that would be done.
Reply
#93
(2020-08-09, 20:54)pkscout Wrote:
(2020-08-09, 14:06)eldrik Wrote: Hi, 

stumbled over this perfect addon while searching for an audio switcher, one question can I switch through the profiles using kodi jsonrpc? And what would a json string look like?
Probably (that's the best answer I can give).

There is a JSONRPC call for ExecuteAddon:

https://kodi.wiki/view/JSON-RPC_API/v10#...ecuteAddon

You'll need to figure out how to send the extra parameter for "rotate through the audio profiles," which you can find in the Audio Profiles wiki:

https://kodi.wiki/view/Add-on:Audio_Prof...ng_Keymaps

The item after the comma in the RunScript command is the extra parameter you'd need to send.  I've never used the ExecuteAddon JSONRPC call, so I'm not sure exactly how that would be done.

figured it out 

I can switch to profile 1 via 

Code:
{"jsonrpc": "2.0", "id": 1, "method": "Addons.ExecuteAddon", "params": { "addonid": "script.audio.profiles", "params": ["1"] } }

and profile 2 via

Code:
{"jsonrpc": "2.0", "id": 1, "method": "Addons.ExecuteAddon", "params": { "addonid": "script.audio.profiles", "params": ["0"] } }
Regards
Eldrik
Reply
#94
Is it possible to switch (and save) CEC-settings from Kodi also with audio profiles?

I have set CEC to put my Odroid N2 in standby, when I switching of the TV. I want to listen to music via a bluetooth speaker connected to Kodi (CoreELEC and snapcast) without having the TV running.
Therefore I have 2 audio profiles, which are working great:
#1 for Movies, TVShows, PVR, Videos, etc. (Sound over HDMI -> TV)
#2 for Music (Sound over Bluetooth/Snapcast)

Now, when I'm listen to music, I have to leave my TV on, but it's not needed. If I turn it off, my Kodi-device is also turned off.
It would be nice, if this addon saves the CEC-config also and would set it corresponding to the profile.

Then I can have 2 CEC-settings:
#1 turns the device off when turning TV off -> audio profile #1 for videos
#2 keeps the device running of TV is turned off -> audio profile #2 for music

btw: The CEC-settings are in $KODI/userdata/peripheral_data/cec_CEC_Adapter.xml
Thx
Wetek Play: LibreELEC 9.0.x as TVH-server --- Odroid N2: CoreELEC 9.2.2 (Unfussy) - searching for good and fast LiveTV Skin - Tips welcome --- Orbsmart 500: Kodi18 (Estouchy) as Online-radio/TV in the kitchen
Reply
#95
(2020-08-18, 11:05)Solo0815 Wrote: Is it possible to switch (and save) CEC-settings from Kodi also with audio profiles?

I have set CEC to put my Odroid N2 in standby, when I switching of the TV. I want to listen to music via a bluetooth speaker connected to Kodi (CoreELEC and snapcast) without having the TV running.
Therefore I have 2 audio profiles, which are working great:
#1 for Movies, TVShows, PVR, Videos, etc. (Sound over HDMI -> TV)
#2 for Music (Sound over Bluetooth/Snapcast)

Now, when I'm listen to music, I have to leave my TV on, but it's not needed. If I turn it off, my Kodi-device is also turned off.
It would be nice, if this addon saves the CEC-config also and would set it corresponding to the profile.

Then I can have 2 CEC-settings:
#1 turns the device off when turning TV off -> audio profile #1 for videos
#2 keeps the device running of TV is turned off -> audio profile #2 for music

btw: The CEC-settings are in $KODI/userdata/peripheral_data/cec_CEC_Adapter.xml
Thx
It may very well be possible to save and change these settings, but at some point I have to decide where to draw the line between this being Audio Profiles and a generic profile switching app.  The more that gets added, the more complicated the addon gets to use, and it is already very complicated IMHO. So while I'm not going to outright no, I am saying probably not.
Reply
#96
Hi.

Is it possible to add an auto-switch option that detects the name of what's being played?

I listen to some YouTube live radio streams, and would like to upmix those to 5.1. There's currently no way to do that now, without also upmixing other stereo streams.
Reply
#97
(2020-09-09, 11:59)Vanguard88 Wrote: Hi.

Is it possible to add an auto-switch option that detects the name of what's being played?

I listen to some YouTube live radio streams, and would like to upmix those to 5.1. There's currently no way to do that now, without also upmixing other stereo streams.
Probably not.  In my experience from dealing with Artist Slideshow's "support" of streaming files, there are too many different ways a stream can be named (or not named at all) to make anything like that reliable.  The best thing I can suggest is to assign a key to the 5.1 set of options.  Then at least it's one keystroke (or remote press) away.
Reply
  •   
  • 1
  • 3
  • 4
  • 5
  • 6
  • 7(current)



Logout Mark Read Team Forum Stats Members Help
Audio Profiles (for Kodi 18 and later)0
This forum uses Lukasz Tkacz MyBB addons.