Garry's Mod

Garry's Mod

Not enough ratings
Auto Speak Tool 3
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Movie
File Size
Posted
Updated
29.793 KB
18 Jun, 2021 @ 1:06pm
30 Jan, 2022 @ 8:22am
7 Change Notes ( view )

Subscribe to download
Auto Speak Tool 3

Description
Some more functions to the autospeak tool 2 by GordonWalkedby

Unsub or disable auto speak 2 if you have it


This tool changes between two faces based on the volume input of the mic,
Do not expect auto lip sync comparable to professional programs such as SFM, which itself requires fine adjustments.


Console Commands

wby_faceflexmax - Sets max number for all flex sliders

wby_faceflexmin - Sets min number for all flex sliders

wby_050mult - Sets the multiple for audio when it's 0-50

wby_50100mult - Sets the multiple for audio when it's 50-100



wby_readrate - The number of times a second to read the text file generated and updated by "JustGetMyVolume.exe"

"JustGetMyVolume.exe" updates the text file 125 times a second

This command updates on game reload

Default readrate is 30, higher values worse for performance and more accurate, not much use setting higher than 125





How to use addon

Launch JustGetMyVolume.exe,
A command prompt window will open.

Select your mic from the numbered options, hit enter,
test the mic and make sure the printed values are changing.

The "working" checkbox makes the tool change between the two faces based on audio level.

Only checked flexes will be affected.


To set the first face, use the faceposer to set the face, then with the auto speak tool 3 selected make sure the

"Working" checkbox is unchecked, otherwise you will only be able to change flexes not affected by "auto speak 3".

Then hit the "set first flexes" button at the top of the auto speak 3 tool menu



To set the second face, check the "working" and "set constant volume" checkboxes

The "set constant volume" checkbox simulates a constant volume from the mic, this is the face that the ragdoll will
change to when the volume reaches this amount.

Change the face using the sliders in the "autospeak tool 3" menu.

Uncheck set constant volume and use microphone to see results



Hopefully self explanatory buttons, comment or make a discussion with your inquiries





Install instructions



Disclaimer:

I did not make the original program, only modified it with changes below(all the way at the bottom)

1 security vendor on virutotal.com flags the program as malicious

https://www.virustotal.com/gui/file/60ad0f3af1c7775aeebf1ea3c85c352c6f4a0cc3ebb4f441409653ec2427c133/detection



Go to this link, download both files

https://github.com/GearsofTime/AutoSpeak3

place both files into

steamapps\common\GarrysMod\garrysmod\data



Open gmod, let addon get installed

Close gmod, right click gmod, click local files, click verify integrity of game files

Start gmod



While in game navigate to steamapps\common\GarrysMod\garrysmod\data

Open JustGetMyVolume.exe

Command prompt will open

Read the mics detected, type the number corresponding to the mic you want to record with and hit enter

If mic input not changing, try opening micro recording tab in the windows control panel sound tab.

control panel >> hardware and control >> sound >> recording tab

and keep the tab open while you record




JustGetMyVolume.exe is now recording the volume level of your mic and changing a text file.

The addon reads that text file and adjusts the given flexes

The "Working" checkbox must also be checked in the tool menu for the face to change.




Notes

I would suggest only checking flexes off when mic has no volume, otherwise the value of the flex will remain non zero.


Better results when you slow the audio down, easy to do with stereo mix, otherwise record and slow down


Works better with hwm models

Works best with mouth movements not caused by spoken words, aka screaming, murmuring, laughing, etc.



You could make a reference face using this and stop motion helper auto record, may be helpful animating.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2218731976









Changes made from original program JustGetMyVolume.exe by GordonWalkedby:

Mainmodule.cs Line88: Thread.Sleep(33); to Thread.Sleep(8); Program loops 125 times a second instead of 30;

Original was 30 tick, it works with the addon, it can be found here:

https://web.archive.org/web/20200925185521/https://github.com/gordonwalkedby/JustGetMyVolume/releases



Popular Discussions View All (1)
3
30 Nov, 2021 @ 3:43pm
what does it do???
txmadhatter
18 Comments
A Parked Car 9 Jul, 2022 @ 11:24am 
roasted and toasted
Monkee  [author] 9 Jul, 2022 @ 9:04am 
@Lmgmm06
Stop wanking and maybe you will understand English
Lmgmm06 9 Jul, 2022 @ 7:12am 
speak english not robot please.
Monkee  [author] 4 May, 2022 @ 3:34pm 
@VALEN EL ANIQUILADOR DE BOTS 2.0
Monkee  [author] 4 May, 2022 @ 3:34pm 
Justgetmyvolume.exe creates a file justgetmyvolume.txt and updates it with current mic level 125 times a second
in steamapps\common\GarrysMod\garrysmod\data

it cannot read the mic level and modify the face without justgetmyvolume.exe

if you are on another operating system, maybe you can find/make a program that reads the mic level and writes it to a file justgetmyvolume.txt x times a second so this addon works.
Scanner Man 4 May, 2022 @ 12:18pm 
I have tried to use it even following the instructions and it does not work for me, maybe I am doing something wrong, I would like there to be a tutorial on this
Scanner Man 4 May, 2022 @ 10:48am 
I have a question, do I necessarily have to have Justgetmyvolume for it to work? since I have tried to use the addon just like that but it does not work
txmadhatter 30 Nov, 2021 @ 1:00pm 
what does this even do...
A Parked Car 29 Nov, 2021 @ 9:10am 
thanks its working now
Monkee  [author] 29 Nov, 2021 @ 3:55am 
@Cat™
You have to uncheck set constant volume checkbox after setting second face, updated the documentation.