extensions
extensions copied to clipboard
SAM extension
This is a new extension that I've been working on the past few days that implements the program SAM (Software Automatic Mouth) into TurboWarp using SamJs. It allows the user to change the speed, pitch, mouth, and throat properties of the voice, which allows for more complex voices and text-to-speech in projects. It also has a nice retro vibe to it which would be great for projects simulating computers. Let me know what you think!
Does he only know how to speak English?
My bad. I didn't understand how to run linting and formatting, but I think I get it now. I'll try to fix all the issues ASAP.
Alright, I fixed all of the errors.
Hi @MagentaDude SAM is a lot of fun! I forked your repo and made 3 commits that you're welcome to include or ignore:
- added a "add [SPEECH] as a sound" block which adds the speech as a sound in the project, rather than downloading to disk.
- slight tweak to use
// global SamJseslint setting to avoid needing to enable/disable as many lines (totally optional!) - This is PROBABLY overboard, but I adapted the SAM doc's Phoneme Chart into a dropdown menu to make it easier to find the right combination of letters. In particular I added IPA symbols for the sounds, so that if anyone really wanted to translate the text to other languages they could (for example, by looking up examples here, which is creative commons licensed).
@WAYLIVES SAM doesn't understand much, which is why it fits in a tiny amount of code. Supporting lots of languages would take > 2 mb for the locale data (I'm thinking mespeak). Maybe my solution in #3 is acceptable?
@lselden Those features sound great! I can't seem to find your fork though; could you provide a link?
@lselden Those features sound great! I can't seem to find your fork though; could you provide a link?
Whoops! Yeah it's here: https://github.com/lselden/extensions/tree/sam
you should not leak
SamJsto global, this is bad practice, a more indepth review will be required CC: @lselden
@MagentaDude I submitted a PR to your fork the plugs the leak, as well as including the other changes I suggested. Take from it what you will
Looks great; I think I'll stop adding changes now 😅
!format
The formatting bot didn't find any formatting issues. It currently only checks the extensions folder. The author or a maintainer can run terminal command 'npm run format' manually to format all files.
This code appears to be minified in some areas. Please use clear, well-formatted code.
Minified libraries aren't banned, so long as you include a license above, and it's recommended to use // prettier-ignore above them to maintain readability
This extension relies on SAM.js and large libraries are probably better left minified
I'm glad this project is finally out of limbo 😅
@PPPDUD Do you still want me to include the unminified version instead?
I'm glad this project is finally out of limbo 😅
@PPPDUD Do you still want me to include the unminified version instead?
It's fine, nevermind. I was feeling like picking apart PRs that day.