Index of every page on this site: llms.txt
All skills
vois-so avatar

/game-barks

@e0e7827
by vois.sovois-so/skills1 stars
Run it yourself

Makes NPC voice lines for a game from a spreadsheet with Vois Studio. It reads a CSV with an id, a character, the line and a direction for each row. It gives each character one voice and selects an engine for each line type. It generates one WAV for each line, with the id as the file name. It writes a manifest (JSON and CSV) that Unity, Unreal Engine or Godot can read, and on the next batch it generates only the lines that changed. Use when the user says "voice my NPC lines", "generate barks from this spreadsheet", "batch game dialogue", "make voice files for my game" or "regenerate the changed lines". The CLI is necessary, so the plan must be Pro, Subscriber, or AppSumo Lifetime Tier 2 or 3. For a commercial game, use Pro or AppSumo Lifetime Tier 3.

  • 4 files
  • 25.3 KB
  • MIT
  • Updated 3 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/vois-so/skills/game-barks

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesengine-import.md

≈683 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Engine import

The out folder has one WAV for each line ID and a manifest. The audio is 24 kHz mono 16-bit PCM. Unity, Unreal Engine and Godot import this format with no conversion.

The game must find a line by its ID. It must not make a file name from the spoken text.

manifest.json

{
  "version": 1,
  "audio": { "container": "wav", "codec": "pcm_s16le", "sample_rate": 24000, "channels": 1 },
  "lines": [
    {
      "id": "guard_alert_01",
      "character": "guard",
      "type": "bark",
      "text": "Halt! Who goes there?",
      "file": "guard_alert_01.wav",
      "duration_ms": 2290,
      "engine_used": "expressive",
      "voice": "npcs_ai_voices/town_crier_herald",
      "language": "English",
      "sha256": "..."
    }
  ]
}

manifest.csv has the same lines. Its first column is Name (the line ID).

Unity

Copy the WAV files to Assets/Resources/VO/. Copy manifest.json to Assets/Resources/VO/manifest.json.

using UnityEngine;

[System.Serializable] public class VoLine { public string id; public string character; public string file; public int duration_ms; }
[System.Serializable] public class VoManifest { public VoLine[] lines; }

public static class VoiceLines {
    public static AudioClip Get(string id) => Resources.Load<AudioClip>("VO/" + id);

    public static VoManifest Manifest() =>
        JsonUtility.FromJson<VoManifest>(Resources.Load<TextAsset>("VO/manifest").text);
}

// Usage: audioSource.PlayOneShot(VoiceLines.Get("guard_alert_01"));

Unreal Engine

  1. Import the WAV files into a content folder, for example /Game/VO/. Each Sound Wave asset gets the line ID as its name.
  2. Make a row structure with the fields Character, Type, File, DurationMs, Engine, Voice, Language and Text.
  3. Import manifest.csv as a Data Table with that structure. The Name column becomes the row name, so the row name is the line ID.
  4. To play a line, get the row by its ID, then load /Game/VO/<ID>.

Godot 4

Copy the out folder to res://vo/.

var manifest = JSON.parse_string(FileAccess.get_file_as_string("res://vo/manifest.json"))

func play_line(player: AudioStreamPlayer, id: String) -> void:
    player.stream = load("res://vo/%s.wav" % id)
    player.play()

Loudness in the game

Vois Studio voices come out at almost the same level. Set the level of each line type (barks, dialogue, system) in the audio mixer of the game. Do not change the files.

When the text changes

Keep the ID, change the text in the spreadsheet, and start render-barks.mjs again. The script generates only the changed rows and writes a new sha256 for them. Copy the new files and the new manifest into the game.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at e0e7827. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 3 weeks ago
metadata
{
  "author": "vois-so",
  "version": "0.1.0"
}
Other metadata
compatibility
Vois Studio on an Apple Silicon Mac or Windows, vois-cli, Node.js 18+, and ffmpeg and ffprobe for the file check.

README badge

README badge for vois-so/skills/game-barks