Project Zomboid

Project Zomboid

332 ratings
Broadcast Voicer
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.124 MB
May 8, 2023 @ 7:39pm
Jan 17 @ 1:05pm
9 Change Notes ( view )

Subscribe to download
Broadcast Voicer

Description
Broadcast Voicer

This is a framework mod I made, to make my mod Voiced Radios & TVs compatible with Survivors Radio.

This mod is perfect for adding ambiance and realism to the game. For instance, if you wanted to make a custom scenario and had a custom radio or tv program for worldbuilding, you could voice the lines and add them with this mod.

How To Use

To use this mod, you'll have to make at least 4 files on media folder:

  • lua/client/RadioCom/{Mod}_SoundTable.lua --A file that links the guid of an entry line to a sound of the game
  • radio/{Your_Radio}.xml --Your radio or TV lines
  • scripts/sounds_{Mod}.txt --A file that associates .ogg sounds to InGame sounds
  • sound/{SoundName}.ogg --Your sounds, can be music or voice lines.

The names of the files are just a convention to avoid compatibility issues with other developers who might want to use this framework, I'll advice to name your files with your mod's name.

First, add .ogg sounds to the sound folder, for instance news-1.ogg

Then, add the sound to the game in the scripts folder.

The mod does not align the audio to the text, so If you want the text and audio to sync, you will have to go to your lines in media/radio/{Your_radio}.xml, and add time tags ( ${t=3.00}) like this:

<EntryLine ID=abcd ...>${1.00}This Line lasts 1 second</EntryLine>

I recommend using an audio editor like audacity to get the duration of the lines in seconds.

Next, make the sound table.lua file. It should look like this:
local RadioWavs=require "RadioCom/RadioWavs"
RadioWavs.addSongs("abcd","news-1")

Where abcd is the ID of the entry line, and news-1 is the name of the sound in the game.

Finally, run the .py script. It should copy the GUID from the lua to the codes attribute (needed to work,don't worry, it doesn't affect the codes)

In mod.info, you should add a require=VOICE_FRAMEWORK line.

VHS Supported, although text can't be synced

Mod Info

Workshop ID: 2973493897
Mod ID: VOICE_FRAMEWORK
62 Comments
ankle toe sac Feb 23 @ 11:05pm 
@Fed-cap I believe this mod conflicts with Bandits Week One, specifically during the party event. Once I turned off this mod and Voiced Radio and TVs, the errors no longer persisted. Something happens during the party code, specifically radiowavs
tyrant Jan 25 @ 3:43pm 
I'm not sure if this is another mod, but you'll hear the default radio voice and the modded voice in the radio (and possibly the TV. I'm not sure). do you know if there's any way to fix that?
ᴅᴇɪᴍᴏꜱ Jan 21 @ 12:24pm 
No entendi nada de como instalar el mod :aunope:
Fed-cap  [author] Jan 20 @ 7:55pm 
@FrenchGamer What do you need? do you have a radio .xml you want to add and voice to the game?
Sleepy Bella Jan 20 @ 6:59pm 
Fun fact: If you enable this mod alongside the Week One mod, you can actually hear the NPC's car radios as they pass you by. Neat little detail.
FrenchGamer Nov 24, 2024 @ 5:38am 
I need help trying to get this mod work
Dere Nov 7, 2024 @ 7:02pm 
@Fed-Cap la verdad estaba intentando entender como funciona el tema de los mods que tienen que ver con las radios y tv¿s del juego ya que quiero hacer uno propio pero no entendi na.
Fed-cap  [author] Nov 7, 2024 @ 8:51am 
@Dere tenes un .xml de radio que funcione?
Dere Nov 6, 2024 @ 8:30pm 
amigo si fueras tan amable de ayudarme a entender como hacer un qliao mod con esto te lo agradecería:D
Fed-cap  [author] Sep 17, 2024 @ 7:22am 
@M.R Johnson I'm really busy with other mods and can't make a detailed guide on how to set this up.

I recommend checking Voiced Radios and TVs or Survivors Radivo V3.7 to check how the files should be organized

(Voiced Radios and TVs I've done it with a very rough automation script, so I recommend Survivors Radivo V3.7 to understand how it works easier).