Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Issues with adding custom voice lines.

A topic by Zora_Zebra created Jan 10, 2023 Views: 546 Replies: 22
Viewing posts 1 to 9
(2 edits)

Hi there!  Love the game, it's given me a fun framework for customizing strip poker opponents.

I'm making custom characters and art.  In addition to images (which are working fine) I have created some .wav files.  I am using the same wav filenames as the default players and put the wavs in opponents_core/[charname]/voice.  When I play the game, there is a pause when the character would speak, but there is no sound.  (Example: I have a custom pawnBra.wav file (2 seconds length) in the /voice folder.  When the character pawns her bra, there is a 2 second pause as if the game is trying to play the wav, but no sound plays other than the music.

Is there a particular format, bitrate etc. that wavs need to be created in?  Maybe the game will recognize mp3 or some other format?  Please help, I have written a lot of voice lines and hope to import them into the game.

Thank you!

Developer

That all sounds like you're doing everything correctly.  Can you put your opponent zip file somewhere I can look at it?

Other things you can try: turn off the music, and crank the volume up. It could just be your sound file just isn't very loud. 

Thanks!  The volume seems to be fine in other applications.

The character has some clothing items that have different names than default characters, could that be causing a problem?  (Example, outfit.1=Gloves and I have a wav file called pawnGloves.wav.  But I also have outfit.4=Skirt and pawnSkirt.wav which are standard) ... could that be a problem?

Happy to send you the files privately but I can't see how to private message you - do you have Discord?

Hmm!  I seem to have found a workaround.  The files I was using weren't being read by the game.  When I converted them to "signed 16-bit PCM wav" files in Audacity, suddenly they worked.

Developer

Glad you sorted it out. The 16 bit thing does sound vaguely familiar now that you bring it up.

Not all clothing names translate to actual voice hooks.  There is some amount of logic to recognize clothing names and match them to the nearest category (like "sneakers" get matched to undressShoes, and "blouse" gets matched to undressShirt)    Gloves isn't going to match anything, though, and will fall back to the generic undress or pawn voice hooks. 

Here is the full list of existing voice events  codes:

win, 
lose, 
undress,
undressHat,
undressShirt,
undressSkirt,
undressPants,
undressShorts,
undressDress,
undressUndies,
undressBra,
undressStockings,
undressShoes,
undressModesty,
undressTop,
undressBottom,
watchUndress,
watchUndressFinalMale,
watchUndressFinalFemale,
fold, 
doubleUp, 
shield, 
cards1, 
cards2, 
cards3, 
cards4, 
cards5, 
bored, 
happy, 
sad, 
greeting, 
finale, 
loseGame, 
peekBlock, 
drink, 
raise, 
call, 
stay, 
allIn, 
bigBetReact, 
smallBetReact,
cardsNothing,
cardsKing,
cardsAce,
cardsPair,
cardsPairQueens,
cardsPairKings,
cardsPairAces,
cardsTwoPairs,
cardsThreeOfKind,
cardsFourOfKind,
cardsStraight,
cardsFlush,
cardsStraightFlush,
cardsFullHouse,
pawn,
pawnHat,
pawnShirt,
pawnSkirt,
pawnPants,
pawnShorts,
pawnDress,
pawnUndies,
pawnBra,
pawnStockings,
pawnShoes,
pawnModesty,
pawnTop,
pawnBottom,
mulligan,
stripShowStart,
moan,
boredWin,
russiaBoycott,

I created a couple of txt files to help me keep track of these. One is a template to allow me to track the voice lines for each of my opponents. I fill each one out with the speech txt and any SSML switches I used. It makes it easier if I need to correct a voice line. I also did a reference sheet for the various clothes items and which triggers which voice line. You're welcome to copies of them if you want.

(2 edits)

This is all great information.  Thanks!

I'd love a list of the clothing triggers!

No problem. Here is the list I compiled, along with suggestions for add-ons if Eldricus ever gets bored :-) If you want the actual txt files, just drop me an e-mail or something and I'll send them to you. stripe6499@yahoo.co.uk 

undressHat - hat. Possible additions head scarf,

undressShirt - shirt, blouse. Possible additions vest

undressSkirt - skirt, Possible additions

undressPants - pants, Possible additions trousers

undressShorts - shorts, Possible additions

undressDress- dress, gown, Possible additions robe

undressUndies -undies, bloomers, panties, Possible additions knickers, thong, briefs, g-string

undressBra - bra, Possible additions corset, bustier

undressStockings - stockings, pantyhose, Possible additions socks, knee-highs

undressShoes - shoes, boots, slippers, sandals, sneakers, Possible additions

undressModesty - modesty, Possible additions

undressTop - top, sweater, jacket, Possible additions coat

undressBottom - bottom, Possible additions leggings

I think there is a way around your gloves item problem, but Eldricus will correct me if I'm wrong. As Eldricus said, if CSP can't find a matching tag line, it will default to the basic "pawn" tag. Therefore, if your gloves item is the only unsupported clothes item in the outfit, then just create an outfit specific voice folder and have the basic 'pawn' line say "I pawn my gloves" or whatever phrase you want to use. Not finding a 'gloves' tag, CSP should go to the outfit folder first and pick up the 'pawn' line, and your model should offer her gloves. By putting it in the outfit folder, it should stop it popping up anywhere else.

That's a really smart workaround.  Thanks so much for the list!

You're most welcome. I'm curious if you're going to make your opponents available, or if you're only making them for your personal use?

I'm making them for my own amusement, BUT I hope to share them with the community as well ... that's only I can get them into a reasonably complete "releasable" state though, which for the initial 'alpha' release would be a single basic pose for each character (8 characters planned, but maybe I would just release 4 at first), plus one drinking, one stripping, and one playing pose for each character, plus I want to do ALL the voice lines at once, which is turning into a lot of writing.  Then after the 'alpha' I would hopefully go back, add basic poses for the rest of the characters, and ultimately add more artwork so every character had several common poses to make the slideshow much more dynamic.

Short answer, yes I plan to share them if I can make enough content to make it worth releasing.

Believe it or not, I found this game because I was searching for exactly this kind of framework to add my art to --- I didn't play the game first and then decide to draw women for it :D

That's cool. My first release was pretty basic. No composites no drinking/playing/undressing images. There were no voice files then either.  Scripting the voice files isn't easy, either. To make them effective, you have to build the character in your head to make the sentences sound consistent.  Again ,I have txt files listing all the voice lines I create. One for each of my ladies. If you think they would help in giving you ideas then you're welcome to a copy of them.

Developer

Nice. I think about half of those possible additions are already there. I can add the rest in pretty easily.

(1 edit)

Well IF you're adding stuff and feel like throwing in some more things, here are the garments I'm planning to use for my project.

Category: Top = Coat, Vestments

Category: Stockings = Tights, Body Stocking

Category: Hat = Veil, Headdress, Helmet

Category: Bra = Bikini Top, Halter Top, Bandeau, Breastplate

Category: Dress = Robe

Category: Undies = Loincloth

Category: ??? = Gloves, Gauntlets, Weapon Belt, Girdle

No pressure :) I might not even write lines for a lot of these.  If you do add them though please let me know!

Developer(+1)

Aha, so things are getting medieval?

Amazing coincidence, things were about to get medieval in CSP anyway!  It's probably going to be a while, because I'm still in the super early stages of getting things set up, but here's a sneak preview:


(1 edit)

Oh wow.  That art is gorgeous, almost looks straight out of the Witcher.

Yep!  The setting for my characters is medieval ... or to be more accurate, more of a fantasy cartoon :D

Here's a sample of the art (low) quality y'all can expect if I ever get this done -


Well, I hope to be helping out Eldricus with my own addition to the tavern scene, probably with a sister or cousin of the blue skinned lady on the right of the picture.

Looking forward to challenging her :)

Developer

Definitely not the art style I expected, but nice lineup.  I can see that looking really nice once you polish it up.  Composite shots should be a lot easier too.  

That's about as polished as it's gonna get ..... at least until I achieve financial independence through Patreon.  And maybe take a freakin art class :D  It's been fun drawing frames though.

Developer

I've incorporated most of those suggestions into the latest release. Enjoy!

Cool!  Thanks for the heads up.  Believe it or not I've been continuing to (s l o w l y) draw artwork for the game.  It's slow going since everything is hand drawn but I'm thinking about how much I want to get done before an "alpha" release.  Right now I have 4 opponents with just 1-2 poses each, fully voiced with placeholder files but I'm still trying to refine the perfect AI generated voice for each character before I'll be happy sharing.

Still playing the game fairly often by the way :) Thanks again for making this in the first place!

Developer

I was using Google's Text-To-Speech API for the voices so far, but if I was starting from scratch I would almost certainly go with one of those voice transforming filters that are popping up all over the place.  It's a lot more flexible and able to get the right intonation than trying to add SSML tags into text.

This one seems ok. Defnitely fun to play with. Though I'm sure there are better ones out there:  https://koe.ai/recast/