일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- judge
- list
- Database
- Python
- git
- KAKAO
- enV
- format
- DB
- numpy
- pandas
- TORCH
- Mac
- pytorch
- GitLab
- Windows
- Package
- AI
- docker
- Paper
- Flask
- evaluation
- PostgreSQL
- Linux
- Converting
- LLM
- Container
- CUDA
- file
- Laravel
Archives
- Today
- Total
목록wave (1)
Daily Develope
[Python] PCM 음성파일 파형 출력 (with pyplot)
ㅇ 사용 라이브러리 - numpy : pcm파일 로딩 - librosa : pcm파일을 wav형태로 변환 - matplotlib : 파형 출력 ㅇ 코드 import numpy as np import librosa as lr import matplotlib.pyplot as plt ### Load File target = "pcm파일경로" f=open(target, 'rb') buf = bytearray(f.read()) pcm_data = np.frombuffer(buf, dtype = 'int16')# bit 수에 맞게 입력 wav_data = lr.util.buf_to_float(x=pcm_data, n_bytes=2) ### Draw Graph x_axis = [i/8000 if i>0 else i..
Develope/Python
2022. 2. 15. 20:30