일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- DB
- list
- evaluation
- enV
- Paper
- pytorch
- Converting
- AI
- LLM
- PostgreSQL
- format
- Container
- Database
- numpy
- Windows
- GitLab
- file
- Mac
- Package
- pandas
- git
- judge
- Python
- CUDA
- KAKAO
- Linux
- TORCH
- docker
- Laravel
- Flask
Archives
- Today
- Total
목록WAV (1)
Daily Develope
[Python] PCM 파일 통합 및 WAV로 변환
PCM 파일 통합(합치기) : PCM은 파일의 시작에 소리 정보를 담고있는 header가 존재하지 않기 때문에, raw 데이터(Byte Code)를 그대로 읽어서 합치면된다. targetList = ["{대상파일1_경로}", "{대상파일2_경로}"] destinationPath = "{생성파일경로}" buf = bytearray() for file in targetList: f = open(file, 'rb') buf += f.read() f.close() wf = open(destinationPath, 'wb') wf.write(buf) wf.close() PCM 에서 WAV 로의 변환 : PCM 데이터를 WAV로 변환하려는 경우 WAV 파일이 어떻게 쓰였는지 나타내는 He..
Develope/Python
2022. 2. 15. 13:49