1. 서론

플러그인의 핵심을 재작성하게 되어 보이스팩의 제작 방식도 달라졌는데, 재작성하게 된 이유는 다음과 같습니다.

이러한 까닭에 플러그인을 재작성하게 되었습니다.

제가 플러그인을 재작성하면서 제일 주의깊게 생각했던 부분은 바로 중복되는 음성을 어떻게 줄일 것이냐는 부분이었습니다. 새로 작성한 플러그인 적용 이전까지만 해도 중복되는 음성을 가진 보이스팩들이 많이 있었고, 이는 서버의 다운로드 테이블에 자리를 차지하기 때문에 다른 모드와의 충돌, 보이스팩 추가의 어려움 등의 문제를 야기하였습니다.

따라서 이전까지는 각각의 보이스 음성에 일대일 대응하는 음성을 다운로드 파일에 추가하여 파일 내용이 똑같더라도 다운로드할 수 있도록 하였다면,

# 각각의 파일이 대응되는 보이스 파일을 가짐
/vo/demoman_cheers01.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers01.mp3
/vo/demoman_cheers02.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers02.mp3
/vo/demoman_cheers03.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers03.mp3
/vo/demoman_cheers04.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers04.mp3
/vo/demoman_cheers05.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers05.mp3
/vo/demoman_cheers06.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers06.mp3
/vo/demoman_cheers07.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers07.mp3
/vo/demoman_cheers08.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers08.mp3

새로운 구조에서는 하나의 파일이 여러개의 보이스 음성을 담당할 수 있도록 하여 실제로 필요한 음성만 다운로드 받을 수 있도록 하였습니다.

# 하나의 보이스 파일이 여러개의 음성에 대응될 수 있음
/vo/demoman_cheers01.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers02.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers03.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers04.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers05.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers06.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers07.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3
/vo/demoman_cheers08.mp3 -> /voicepacks/awesome_voice/vo/demoman_cheers.mp3

하지만 이러한 구조를 가능케 하려면 음성과 보이스 파일 간의 대응 관계를 줄 수 있어야만 합니다. 따라서 보이스 팩 제작자로 하여금 보이스 팩을 제작할 때 이러한 관계를 같이 정의하도록 하려고 합니다.

2. 보이스팩 제작 방법

간단한 토이 보이스팩을 만들어보려고 한다.

잼민이 목소리로 유명한 씩씩한 강모 TTS를 이용하여 목소리 파일들을 제작한다.

Untitled

jamin.zip

보이스팩을 제작하기 위해 보이스 팩 템플릿을 이용 할 것인데, 모든 음성에 대응되는 파일이 존재하는 것은 아니므로 매핑이 있는 것을 사용한다.

"jamin"
{
	"name"				  "잼민이 (씩씩한 강모)"
	"base_path"		  "voicepacks/scout/jamin/v1/"
	"preview"  "vo/jamin_cheers01.mp3"
	"description"			  "Creator: 강모\\nContributor: TTS"
	"access"			  ""
	"mapping"
	{
		...
	}
}