Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Announcing the announce_status plugin
« previous next »
  • Print
Pages: [1]

Author Topic: Announcing the announce_status plugin  (Read 1022 times)

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Announcing the announce_status plugin
« on: March 04, 2021, 11:52:02 AM »
Announce Status Plugin

plugins/demos/announce_status

The announce status plugin allows you to use the voice system to announce things in the audio stream

currently the list includes:
  • Time (If applicable)
  • Date (If applicable)
  • Track name (spelled)
  • Artist name (spelled)
  • Track Elapsed / Remaining
  • Playlist position
  • Battery level
  • Sleep Timer remaining
  • Running time

The input for announce format is actually a parsed string of options
while you can edit the items directly to get your preferred order I've included preset options.
If you choose to manually edit the option string the input box helpfully has all valid options for the parser

TIME
DT current time
D1 'time'
DD current date
D2 'date'

TRACK
TT title (spelled)
TA artist (spelled)
TE elapsed
TL length
TR remaining
T1 'elapsed'
T2 'remaining'
T3 'of'

PLAYLIST
PC current track
PN total tracks
PR remaining tracks
P1 'track'
P2 'of'

BATTERY
BP level (percentage 0-100)
BM remaining time (HMS)
B1 'battery level'

SLEEPTIMER/RUNTIME
RT runtime (HMS)
R1 'running time'
RS sleep timer remaining (HMS)
R2 'sleep time'
R3 'remaining'

Now that we have configuration out of the way (don't forget the preset options if this looks daunting)

Not quite out of the woods yet though...

You can choose to get announcements each track change or only when you run the plugin again
it would get quite annoying to have to go run the plugin every time you wanted a status update though

Enter the WPS HOTKEY
now we will assign the wps hotkey to announce_status
Settings>General Settings>Hotkey>WPS Hotkey
choose 'OpenPlugin' NEW https://forums.rockbox.org/index.php/topic,53771.0.html
browse to 'demos'
finally choose 'announce_status'

Now you should be able to press your wps hotkey and get status updates on command (see device manual or source for WPS hotkey)

Note:
This is actually a plugin running on top of the WPS screen and as such running other plugins stops the announce plugin
so if you only choose the track change option you should probably set the announce plugin to open on startup and keep
in mind that you may have to start the plugin again later



 

« Last Edit: March 04, 2021, 12:12:01 PM by Bilgus »
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 883
Re: Announcing the announce_status plugin
« Reply #1 on: March 25, 2023, 11:30:06 AM »
TSR plugins now restart automatically after you close the plugin that interrupted

if you want to exit announce_status for good run the plugin again and hold a button
you should hear decreasing beeps till the settings menu appears choose 'Quit'
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Plugins/Viewers
| | |-+  Announcing the announce_status plugin
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.075 seconds with 18 queries.