i have function to encryp steganography lsb. but when i want to open my mp3 file that can be convert to wav, there's error:
[WinError 2] The system cannot find the file specified
maybe how i open the file was wrong? here's my code:
def lsb2(filename, message):
print(filename) //F:\KULIAH\SEMESTER8\SKRIPSI\MusicLockApp\media\mp3\Jibaku_Shounen_Hanako-kun_EDTiny_Light-_Akari_Kito_Video_Lyrics_R9xi8Uq.mp3
sound = AudioSegment.from_mp3(filename)
sound.export("media/em/", format="wav")
print(sound)
song = wave.open(sound, mode='rb')
frame_bytes = bytearray(list(song.readframes(song.getnframes())))
bits = [int(x) for x in message]
for i, bit in enumerate(bits):
frame_bytes[i] = (frame_bytes[i] & 254) | bit
frame_modified = bytes(frame_bytes)