Reverting sound recording to wav.

This commit is contained in:
jpunkt 2021-11-04 15:12:04 +01:00
parent fd1fa138d9
commit 0f5b331084
2 changed files with 5 additions and 7 deletions

View file

@ -80,12 +80,12 @@ class StoryFile(FileHandle):
FileHandle.__init__(self, name, FileType.STORY) FileHandle.__init__(self, name, FileType.STORY)
REC_NAME = RecFile('name.mp3') REC_NAME = RecFile('name.wav')
REC_MY_IBK = RecFile('my_ibk.mp3') REC_MY_IBK = RecFile('my_ibk.wav')
REC_PORTRAIT = RecFile('portrait.jpg') REC_PORTRAIT = RecFile('portrait.jpg')
REC_CITY_NAME = RecFile('city_name.mp3') REC_CITY_NAME = RecFile('city_name.wav')
REC_CITY_DESC = RecFile('city_description.mp3') REC_CITY_DESC = RecFile('city_description.wav')
REC_CITY_SOUND = RecFile('city_sound.mp3') REC_CITY_SOUND = RecFile('city_sound.wav')
REC_DRAW_CITY = RecFile('city_video.h264') REC_DRAW_CITY = RecFile('city_video.h264')
REC_CITY_PHOTO = RecFile('city_drawing.jpg') REC_CITY_PHOTO = RecFile('city_drawing.jpg')
REC_MERGED_VIDEO = RecFile('video.mp4') REC_MERGED_VIDEO = RecFile('video.mp4')

View file

@ -5,11 +5,9 @@ from enum import Enum
from typing import Any, List from typing import Any, List
from scipy.io.wavfile import write as writewav from scipy.io.wavfile import write as writewav
import pydub
import sounddevice as sd import sounddevice as sd
import soundfile as sf import soundfile as sf
import numpy as np
from . import gpio_pins from . import gpio_pins