Skip to content

Added Voice Overs to Dialogue System#147

Open
gZation wants to merge 4 commits into
chrysly:mainfrom
gZation:main
Open

Added Voice Overs to Dialogue System#147
gZation wants to merge 4 commits into
chrysly:mainfrom
gZation:main

Conversation

@gZation
Copy link
Copy Markdown
Contributor

@gZation gZation commented Nov 3, 2023

We can now give voice overs for any character dialogue using yarn spinner!
There are a couple of things to make this work properly:

  1. Add voice clips to Assets > Sound Assets > Dialogue Voices > EN with an appropriate convention.
  2. Add a #Line:[Name of Sound Clip] at the end of each dialogue line in the yarn script to let a voice clip be played
    e.g.
    image
  3. Make sure that any yarn scripts that don't have voice overs are given their default line id: #line:[mem addrs.]

This can be done automatically by clicking Add Line Tags To Scripts in the Bonbon yarn project file located at
Assets > _Scripts > EventSequencer > Events

image

  1. And then your done! Dialogue should run as expected......hopefully!

[Commit history covers the rest of details]

gZation and others added 4 commits November 3, 2023 09:55
- Next Commit should contain fixes for progressing through dialogue, it seems lines following the first are not playing (Most likely from the way progressing through dialogue works rn)
- New Voice Overs are reflected on s1_camp01.yarn which can be heard on scene: Level 1 Pre-Combat
- Added the Voice Over Gameobject, which holds the Voice Over View and Audio Line Provider components, onto the Dialogue System Prefab.
- The Voice Overs now play with every dialogue line
- The BonBon Yarn Project requires every dialogue to have a specified line id, whether or not voice lines are delivered.
- These ideas by default are references to random memory addresses, but can be modified with names of audio clips
- All Voice Over Audio clips should be located in one "localization folder" required by yarn
- I've created the English Localization folder in Assets > Sound Assets > Dialogue Voices > EN, we can store all voice over files here and name them similarly to what I have.
- With these names, on every dialogue line written you just write #line:[name of voice file] and it'll run it!
- Last thing to fix is to add an interrupt handler on audio lines to resolve improper dialogue skipping and duplication
- We know have voice overs working!
- Current Issue: Pan and Mochi's voices sound don't sound like Pan and Mochi.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant