(file_path)
| 1444 | import struct |
| 1445 | |
| 1446 | def read_mp3_file(file_path): |
| 1447 | audio = MP3(file_path) |
| 1448 | audio_data = audio.tags.get('TXXX:replaygain_track_gain') |
| 1449 | if audio_data: |
| 1450 | gain = float(audio_data.text[0].split()[0]) |
| 1451 | else: |
| 1452 | gain = 0 |
| 1453 | return gain |
| 1454 | |
| 1455 | def test_task_149(trajectory): |
| 1456 | audio_path = "./output/149.mp3" |