Skip to content

Commit b742b54

Browse files
authored
Update audio_converter.py
1 parent a28b3ac commit b742b54

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

audio_converter.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Programmed in: Python 3.9.0 (64-Bit)
66
77
Description:
8-
This is a Python Program, that can convert audio files from/to MP2, MP3, M4A, FlAC, and WAV.
8+
This is a Python Program, that can convert audio files from/to MP2, MP3, M4A, FlAC, OGG, and WAV.
99
"""
1010

1111
# Used for checking if the file exists in the local directory.
@@ -14,7 +14,7 @@
1414
# Used for converting the audio file in the local directory.
1515
from pydub import AudioSegment
1616

17-
print("\nAudio File Converter: [flac, m4a, mp2, mp3, wav]\n")
17+
print("\nAudio File Converter: [flac, m4a, mp2, mp3, ogg, wav]\n")
1818

1919
# This will contain the file name
2020
file = ""
@@ -61,6 +61,11 @@
6161
# then it will break the loop.
6262
elif new_format.lower() == "m4a":
6363
checking_format = False
64+
65+
# If the user enters 'ogg' as the new audio file format,
66+
# then it will break the loop.
67+
elif new_format.lower() == "ogg":
68+
checking_format = False
6469

6570
# If the user enters 'flac' as the new audio file format,
6671
# then it will break the loop.

0 commit comments

Comments
 (0)