It is currently March 29th, 2024, 1:01 am

Help with MeasureSpeaker and AnimatedGIF

Get help with creating, editing & fixing problems with skins
DvD
Posts: 15
Joined: November 23rd, 2019, 6:03 pm

Re: Help with MeasureSpeaker and AnimatedGIF

Post by DvD »

eclectic-tech wrote: November 24th, 2019, 5:52 pm Look at this code, I use identical frames, but dimmed one when sound is silent.
assistsine.gif
After seeing it in action, replace the values with your image info. You would use your 2 image sets; mouth open for [MeterSpeaking] and mouth closed for [MeterSilent], and increase the loop measure EndValue to your max number of frames.

It uses a single loop measure to drive the animation, and will show/hide 2 images based on sound/no sound; the transition should be almost seamless since the same loop measure is driving both images.

You did not show your mouth open GIF, but hopefully, it has a moving mouth as well as the swaying stewardess.
This should get you pretty close to your desired result.
Sorry I respond to late D:
I where working on the mouth opened gif, i only have a problem with your code xD
when the gif change to the mouth opened, the position of the gif is different
DvD
Posts: 15
Joined: November 23rd, 2019, 6:03 pm

Re: Help with MeasureSpeaker and AnimatedGIF

Post by DvD »

DvD wrote: November 27th, 2019, 6:26 am Sorry I respond to late D:
I where working on the mouth opened gif, i only have a problem with your code xD
when the gif change to the mouth opened, the position of the gif is different
https://drive.google.com/open?id=1ENPxrVzujjJgblBKnWU0e5yN-LVgFjx9
:0
User avatar
Quell
Posts: 17
Joined: November 17th, 2019, 6:02 am

Re: Help with MeasureSpeaker and AnimatedGIF

Post by Quell »

Hey look at this. I do this every day.
I feel like I need to post a picture of my personals.

There is a very cruel example that can initiate a valuable asset as an assistant.
When using the algorithms for intelligent speaking. Like using the phonetic symbols for the animation track.
2 examples included in the links. Educational purpose only, use at your own risk. The information I have is saying that there are 44 symbols for the 24 letters of the English language, US English language.

https://www.ling.upenn.edu/courses/Fall_2014/ling115/phonetics.html
http://www.nativlang.com/linguistics/ipa-pronunciation-lessons.php

You can break them up by
Vowels
Consonants
Syllables

The current group of AI speech identities are rallied to Solfège (https://en.wikipedia.org/wiki/Solf%C3%A8ge) :jawdrop
There are only 7 simple scales. With additional 11 half steps. Total 77 proverbs.
It's easier to start with the 7 scales.

I know what you mean. Best start with simple and easy commands. I thought you wanted to start a discussion about assistants.
I used to not smoke in my bosses car if we slept together.
User avatar
Quell
Posts: 17
Joined: November 17th, 2019, 6:02 am

Re: Help with MeasureSpeaker and AnimatedGIF

Post by Quell »

As always I will follow up on the information that I provided. The reason the AI synthesis is rallied to the 7 major symbols is for the creation of it's own phonetic dictionary symbols. The AI synthesis can't use the 44 US English phonetic symbols.

Personally I think it's because the researchers didn't want to create the half sudden groups between the 44 phonetics. That would already double the number of keys. But, it can't stop at the number. Because the connections between Vowels, Consonants and Syllables have to be created separately.
I used to not smoke in my bosses car if we slept together.
User avatar
Jeff
Posts: 326
Joined: September 3rd, 2018, 11:18 am

Re: Help with MeasureSpeaker and AnimatedGIF

Post by Jeff »

joining kinda late, but wouldn't

Code: Select all

ImageName=(Round([MeasureSpeaker] * 14))
DynamicVariables=1
on the image meter be easier than a million IfConditions?
I am yet to download any of the examples sent here but I still feel this would be easier
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help with MeasureSpeaker and AnimatedGIF

Post by balala »

Jeff wrote: November 30th, 2019, 1:41 pm joining kinda late, but wouldn't

Code: Select all

ImageName=(Round([MeasureSpeaker] * 14))
DynamicVariables=1
on the image meter be easier than a million IfConditions?
I am yet to download any of the examples sent here but I still feel this would be easier
Yes, but such an ImageName option doesn't work. Calculations are not allowed into the ImageName option (and nor on most of the other options).
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help with MeasureSpeaker and AnimatedGIF

Post by jsmorley »

balala wrote: November 30th, 2019, 2:27 pm Yes, but such an ImageName option doesn't work. Calculations are not allowed into the ImageName option (and nor on most of the other options).
Correct. ImageName is assumed to be textual and will not resolve formulas. It can use the string value of a Calc measure or any other measure that returns a number value, but it can't have formulas in and of itself.

This will work:
Both the number and string values of [MeasureCalc] will be "7", and ImageName is happy to use that string value.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeasureCalc]
Measure=Calc
Formula=4+3

[MeterImage]
Meter=Image
ImagePath=#@#Images\
ImageName=[MeasureCalc].png
DynamicVariables=1
This will not:
Options that assume a string/text value can't resolve formulas.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeterImage]
Meter=Image
ImagePath=#@#Images\
ImageName=(4+3).png
DynamicVariables=1
User avatar
Jeff
Posts: 326
Joined: September 3rd, 2018, 11:18 am

Re: Help with MeasureSpeaker and AnimatedGIF

Post by Jeff »

balala wrote: November 30th, 2019, 2:27 pm Yes, but such an ImageName option doesn't work. Calculations are not allowed into the ImageName option (and nor on most of the other options).
That's... actually understandable
TIL
Anyways making a separate Calc measure and using MeasureName on the image meter does the job instead :P
(cause you know, %1 and .png are defaulted)

Code: Select all

[C]
Measure=Calc
Formula=Round(MeasureAudio * 14)
[Speaker]
Meter=Image
MeasureName=C
EDIT: I've been beaten by jsmorley with a better explanation >:P
Last edited by Jeff on November 30th, 2019, 2:57 pm, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help with MeasureSpeaker and AnimatedGIF

Post by jsmorley »

Jeff wrote: November 30th, 2019, 2:54 pm That's... actually understandable
TIL
Anyways making a separate Calc measure and using MeasureName on the image meter does the job instead :P

Code: Select all

[C]
Measure=Calc
Formula=Round(MeasureAudio * 14)
[Speaker]
Meter=Image
MeasureName=C
EDIT: I've been beaten by jsmorley with a better explanation >:P
Right. The reason it has to be this way is that many mathematical symbols, including ( ) + - and such are also perfectly valid parts of a file name. There is no reason why you can't name a file literally "(4+3).png".
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help with MeasureSpeaker and AnimatedGIF

Post by balala »

jsmorley wrote: November 30th, 2019, 2:48 pm This will not:
Options that assume a string/text value can't resolve formulas.
Unless an image named (4+3).png exists. But this doesn't mean the option resolved the formula or calculation:
jsmorley wrote: November 30th, 2019, 2:57 pm Right. The reason it has to be this way is that many mathematical symbols, including ( ) + - and such are also perfectly valid parts of a file name. There is no reason why you can't name a file literally "(4+3).png".
:thumbup: