
Publisher
deadpixelsociety
gdsam for Godot
GDSAM provides retro voice synth capabilities via a wrapper library for SAM, the Software Automatic Mouth. Based on the C port by Sebastian Macke at https://github.com/s-macke/SAM.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
gdsam-plugin
Godot 4.1+ Plugin for SAM (Software Automatic Mouth)
A GDExtension library wrapper around the C port of SAM by Sebastian Macke over at https://github.com/s-macke/SAM.
The Godot 3.5 version of this plugin is still available on the 3.5 branch.
The Godot 4.0 version of this plugin is still available on the 4.0 branch.
NOTICE: There are breaking changes from the 3.5 version of this plugin. Please see the usage below and the example scene provided.
Usage:
- Add the
addons/gdsam
folder to your project. - Go to
Project > Project Settings > Plugins
and Enable theGDSAM
plugin. - Add a
GDSAM
node to your scene. - Call the
speak(audio_stream_player, text)
function to speak using your providedAudioStreamPlayer
orAudioStreamPlayer2D
. - Call
interrupt()
to interrupt any queued phrases. - (Optionally) Provide your own callback to
set_audio_stream_callback(callback)
to grab the buffered speech data and provide your own audio stream before it is played. - Play with the
speed
,pitch
,mouth
andthroat
settings to modify the voice. Experiment! - GDSAM can speak plain text when
phonetic
is false, or it can be enabled and you can provide your own phonemes. See the original documentation for some examples. - Some stock voices are included based on the original demo.
set_voice_default()
set_voice_elf()
set_voice_old_lady()
set_voice_alien()
set_voice_stuffy()