Spoken “charging” prompts

I have a question. I’ve been looking into the possibility of adding a voice prompt, or a wav that says “charging” that will play when the 3.9 is plugged in to a usb. And also, potentially a “unplugged” or “charging complete” at 100% charged. Meaning I don’t have to unscrew the pommel to read the status led. I’ve looked into the prop for the status led and that leads me to believe the proffie does indeed know when it is charging, and is able to still give out a live output of battery percent. Is it possible to make a prop that uses whatever the status led uses to allow me have some vocal feedback on what the battery state is: “charging” done charging etc.

1 Like

I know Fett263’s prop has button commands to have a spoken percentage of the battery level. So that’s at least possible.

I would assume a trigger could be made to say a specific voice audio file when charging or when full?

I’ve wondered about this feature before as well, I just never bothered to ask about it.

1 Like

Yeah I’m sure it’s possible to do. I switched my xeno board out with a proffie not long ago and the transfer was fine but am finding I miss the obviousness of Xeno in some cases! I’ve got everything working readily but part of me can’t rest until I know that when I plug in my type o charger, I don’t have to still unscrew the pommel to check it’s charging, seems like having an external charge port is a bit redundant if you still have to visually check by taking the pommel off. I was wondering if it’s possible to somehow tie it in to the behaviour of the status led on the board. When plugged in my saber does give out a battery percentage reading if I press the button to do it. Otherwise though it’s a perfect set up (minus true standby haha)

You could try to check what code triggers the status led and what code gets triggered in Fett’s prop which gives spoken battery percentage.

Maybe you could edit the status led prop with a similar code from Fett’s prop and change the specific battery voice wav file with a custom “charging” wav file.

I don’t have access to the files now, but I could give it a look later.

There are visual blade styles available:

StylePtr<BatteryLevelStyle>(),

or

&style_charging,

or

/* copyright 2022 NoSloppy (BRIAN CONNER) OS6 Style
OS6.5 v1.017
This Style Contains 1 Unique Combination
Style Options:
Default (0): Boring ass battery meter blade (Original TeensySaberV3)
--Effects Included--
Ignition Effect Options: Default:  Boring battery bump
Retraction Effect: Standard Retraction
Lockup Effect: n/a
LightningBlock Effect: n/a
Drag Effect: n/a
Melt Effect: n/a
Stab Effect: n/a
Blast Effect: n/a
Clash Effect: n/a
*/
StylePtr<Layers<Black,AlphaL<Mix<BatteryLevel,Red,Green>,Bump<Scale<BatteryLevel,Int<0>,Int<35000>>,Int<10000>>>>>(),

I found the last style here:

I keep one of these as my last preset.

Yeah I’ve seen this. But presumably you can’t have the blade on the whole time it’s charging, basically I’m trying to achieve set and forget, I don’t want to have to remove the pommel for a kill switch (I’ll see to that later) or to charge it. I kinda just want like what Xeno/snv4s do. You leave them on display after using and they eventually turn off, to charge them, plug into the charger in the hilt, hear “charging” play, and then “ready”/“charging complete” at 100%. Maybe it’s possible I dunno :slight_smile:

If you have an accent led or a crystal chamber, then it works just fine.
Another option is to have a “charging blade” (a short blade with a small number of LEDs.)

Having voice prompts is of course possible, but it would take a little programming to do.
The problem with voice prompts is that if you’re not there to hear it, it’s not easy to tell if it’s already played or not. Personally, I’m still using barrel jacks, so this never really came up for me. (I just look at the LED on the charger.)

Note that none of this works if you’re using an external charging board, but since you’re checking the onboard LED I’m guessing that you don’t have that.

Here are some blade plug charging threads:

&

1 Like

As @olivierflying747-8 mentioned, blade plug charging might tick a lot of boxes for you.
Using @baldusi’s excellent charge plug parts designs, it can be made to work something like this: :slight_smile:

Yeah so it’s just a type o usb, one of the Damien saber style shared button/charge boards. I’ll have another little tinker tonight. I’m happy to do the programming I just need to work out what the status led uses to trigger its behaviour. I think I also spotted something in the fett button prompt that gave away a clue. If I can find the trigger I can then presumably attach a function to it to play x.wav

Ahh I see the blade plugs thing. Yeah that’s kinda close but I think it doesn’t tick the main box im trying to achieve. I want to be able to stick my saber on the wall, where it lives when me and the mrs and battling (she always wins by the way). Plug it into a charger as it is, no blade removal, no unscrewing pommels, basically as lazy as it gets hahah. But I guess you have to be incredibly productive to be lazy with these sabers hahaha

It sounds like one of these might help:

It’s basically a display blade that runs off its own USB connection, and so isn’t powered by the hilt at all.

Interesting. Though that’s the price of a saber nearly so not quite :rofl: that’s cool that. I like the idea. I’ve got wall mounts I 3D printed. They live near a plug so I just plug them in after I use them, when they had xeno boards it would play “charging” when I plugged it in and “ready” when it was 100% charged. Then go into deep sleep. I kinda miss that functionality so was hoping to recreate it (minus the deepsleep I guess) :slight_smile:

Yesterday I was looking into this feature as well.
As far as I know, it can be done pretty easily. However, you are most likely only able to play a ‘charging’ sound.

‘Battery Full’ is not possible, as the ‘is charging’ pin / voltage meter shows about 4.15 when charging. So, it’s not possible to read the actual percentage of the battery while charging.

What is possible, is to say the current percentage when unplugging the charger. But I think that kind of defeats the point.

Any idea on how to implement it? Also, I’m not sure but when I do have my sabers on charge, I can get it to say what percent it’s on even while on charge, and it’s accurate, is this not common? Could be worth a punt - the sabers are In the living room so I’ll definitely hear it say “done charging” or whatever to get up and unplug it :laughing:

Hmm, Maybe that’s an error on my part with the research. I was primarily looking at the code and did not test it with the actual saber as I wasn’t able to at that moment.
If I’m able, I’ll try to implement this feature and test it more with an actual saber later today.

The only thing I’ll need is an actual voice WAV saying “Charging” and “Done” or something like that.

As for deep sleep, that isn’t a thing with proffie but it does disable most of the features after a timeout configured in the config. In my experience, the battery last’s for a long time in this state.

Here’s one I just made quick, it’s not the best but it’ll do (that’s not my voice by the way :laughing:) “ChargINNNG”

Oh and the other.

To be honest I’d probably use something like this but just chuck it into logic and give it a bit crusher and some modulation to make it sound like a droid or something.

but yeah, if we can figure this out I feel like it’s a dope feature.

Here are a lot of voice packs which I believe were created by a custom trained AI.
Additional Voicepacks - Sound Fonts - The Crucible

Would be nice if these ‘additional’ voice files could be made the same to match the voice pack.

It could be! Use an ai voice replicator. Particularly easy if it’s Anakin or something. To be fair though for myself I had my common folder in Chinese for a few days because my buddy thought that would be funny to do to me. At least I learned what edit mode was in mandarin. Hahaha. I’ll customise it a bit more if the functionality of the battery charge prompt came to life