(1) 환경 setting
필자는 Rubberband library를 사용하여 pitch 변조 실습을 해보았다.
https://breakfastquay.com/rubberband/
Rubber Band Audio Time Stretcher Library
breakfastquay.com

음성 변조 실습을 해보고 싶어서 찾아보니까 Rubber Band library가
오디오를 편집하고 다루기에 꽤 괜찮을 것 같아서 선택함!
1. RubberBand Library 다운
https://breakfastquay.com/rubberband/index.html
Rubber Band Audio Time Stretcher Library
breakfastquay.com
일단, RubberBand library를 사용한 pitch 변조 프로그램은 위의 사이트에서 소스코드를 다운받고, 빌드해주면 됨!
하지만 빌드 시 오류가 나는데,
바로 sndfile.h 헤더 파일을 인식하지 못하는 오류가 나타남!
그럼 sndfile.h 헤더 파일의 정체는?!
찾아보니까 음성 샘플들을 read & write 해주는 C언어 library임!
< 참고 : Rubber Band Library 설명 >
https://breakfastquay.com/rubberband/code-doc/classRubberBand_1_1RubberBandStretcher.html
2. libsndfile 라이브러리 설치
http://www.mega-nerd.com/libsndfile/
libsndfile
nonpayments.bestowals --> displeases --> History -+- Features -+- Similar or Related Projects -+- News Development -+- Programming Interface -+- Bug Reporting -+- Download FAQ -+- Mailing Lists -+- Change Log -+- Licensing Information -+- See Also Libsndfi
www.mega-nerd.com
해당 사이트에서 libsndfile-1.0.28~.tar.gz 뭐시기 파일을 다운받고, 압축해제 시켜주면 됨

< 참고 : Libsndfile 의 함수 기능에 대한 설명 >
http://www.mega-nerd.com/libsndfile/api.html
The libsndfile API
libsndfile Libsndfile is a library designed to allow the reading and writing of many different sampled sound file formats (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard library interface. plazas --> During read and write operat
www.mega-nerd.com
3. 라이브러리, dll 경로 설정 해주기!
Rubberband 프로그램을 빌드하기 전에
sndfile 라이브러리의 헤더 파일과 dll 파일들의 경로를 설정해준다!
3-1. 헤더 파일 경로 설정

3-2. dll 파일 경로 설정

< 참고 >
해당 블로그를 참고하면, 더 자세한 경로 설정 방법을 확인할 수 있다.
https://elifelog.tistory.com/476
libsndfile.dll 파일 다운로드 및 오류 해결 방법
마이크로소프트 비주얼 스튜디오 닷넷의 비주얼 C++ 이나 비주얼 C 런타임의 라이브러리 파일 중 libsndfile.dll 동적 라이브러리 파일은 오디오 파일을 읽고 쓰기 위한 라이브러리 파일(A library for reading an..
elifelog.tistory.com
4. Rubberband program 빌드

빌드에 성공함을 확인할 수 있다.!
그치만 문제가 생겼다...
rubberband-program을 실행시키면,
예상치 못한 libsndfile-1.dll 파일이 존재하지 않다는 오류가 뜬다..
분명, 빌드에 성공했는데도.. 도무지 실행이 되지 않는다.
찾아본 결과!
C:\Windows\System32 경로에 해당 dll 파일을 넣어주어야 한다.
5. Rubberband Program 실행
rubberband-program.exe -h 입력해보았더니 잘 실행됨을 볼 수 있다!
이제 음성변조 실습을 할 수 있다...

'프로젝트 > 음성변조' 카테고리의 다른 글
MFCC를 사용한 pitch detect 실습 (1) (0) | 2019.10.16 |
---|---|
Rubberband library를 사용한 pitch 변조 (2) (0) | 2019.10.15 |
libsndfile-1.dll 오류 해결 방법 (0) | 2019.10.15 |