Skip to content

Repository files navigation

vscode-animalese

Typescript Image Webpack Image

CodeFactor Grade GitHub License

"Not Strictly Advisable From A Business Perspective, But Quite Generous. Yes yes!" - Tom Nook

Write code with the whimsical style of "Animal Crossing"-esque characters!

vscode-animalese is a Visual Studio Code extension that functions similarly to the chrome plugin Animalese Typing, made by DageXVIII. Each time you type a character in a file, a corresponding animalese sound will play with nearly 0 delay. Not very practical; but certainly very fun!

Special Thanks To:

  • DageXVIII for the original chrome extension and audio assets; without them, none of this would have been possible.
  • Mel for the introduction to animalese-style keysounds.
  • Amity for the icon.
  • ircam-ismm for the fantastic node-web-audio-api package, which served as a great low-latency alternative to the simpler albeit jankier sound-play package.

Command List

All commands are prefaced with the namespace vscode-animalese:.

  • Enable/Disable/Toggle Animalese Sounds: Self-explanatory.
  • Set Animalese Volume/Voice: Self-explanatory.
  • Toggle Alphabetical Animalese Sounds: Toggles alphabetical keys (a-z) playing individual sounds.
  • Toggle Harmonic Animalese Sounds: Toggles top row keys (number keys and - or =) playing harmonic sounds.

More Detailed Configuration List

⚠️ The execution of this plugin is very rudimentary, and has not been thoroughly tested on any other platform besides Windows. If there is a pressing issue to solve, please raise an issue within the GitHub repository.

  • vscode-animalese.volume (integer between 0-100): Controls the volume of the keysounds, where 100% is max volume.
  • vscode-animalese.voice (selectable from 8 different voices): Customize the timbre of the keysounds with 8 different voice profiles (yoinked from animalese-typing).
  • vscode-animalese.intonation.louderUppercase (positive number): Adjusts the output volume produced by uppercase letters. To be exact, the number used here should indicate how many percent above the normal volume the uppercase sounds should use.
  • vscode-animalese.intonation.falloffTime (positive number): Determines how many seconds it takes for the audio to fade out (although each keysound is not above a second regardless, so this value should be like 0.75 at most).
  • vscode-animalese.intonation.pitchVariation (positive integer): Adjusts the strength of pitch variation between duplicate key pressed. If set to 0, all keypresses of the same key (such as pressing the e key 7 times) will sound identical.
  • vscode-animalese.intonation.switchToExponentialFalloff (boolean): If set to true, the audio level (in decibels) will decrease exponentially instead of linearly. Turning this on creates a slightly more "realistic" falloff, as the decibal system is inherently exponential.
  • vscode-animalese.sounds.override (absolute path): Replace ALL sounds produced by vscode-animalese with a sound of your choice. Supports .mp3, .wav, .aac, and .ogg.
  • vscode-animalese.sounds.specialPunctuation (boolean): By default, !, ? and Enter produce special sounds that represent the ends of sentences. To override this with a standard voice, set this setting to true. This will result in the following characters-to-sounds map:
    • ? -> です? or "desuka?"
    • ! -> グア~ or "gwah~"
    • Enter -> おーけ or "OK"
  • vscode-animalese.sounds.alphabetical (boolean): If set to true, alphabetical characters will have their own sounds.
  • vscode-animalese.sounds.harmonic (boolean): If set to true, number keys and adjacent keys (- and = keys) will play harmonic sounds, similar to a piano. Harmonic keys will use the default sound when this is disabled.
  • vscode-animalese.sounds.diacriticRecognition (boolean): If set to true, letters with diacritics will play the sound that the diacritic-less letter would play. Otherwise, plays the default sound on specified key presses.

About

Make your IDE play animal crossing sounds when you type.

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages