-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAudioTagger.py
144 lines (144 loc) · 3.41 KB
/
AudioTagger.py
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "AudioTagger",
"version": "0.3.2",
"provenance": [],
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/QColeman97/AudioTagger/blob/master/AudioTagger.py\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"metadata": {
"id": "1r-IRKqSNCF8",
"colab_type": "code",
"outputId": "5cfb11c8-f5b2-4f38-c619-af8f6c7bbe7b",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 54
}
},
"source": [
"from google.colab import drive\n",
"drive.mount('/content/drive')"
],
"execution_count": 18,
"outputs": [
{
"output_type": "stream",
"text": [
"Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount(\"/content/drive\", force_remount=True).\n"
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "BntxWSSKakG2",
"colab_type": "code",
"colab": {}
},
"source": [
"import numpy as np \n",
"import pandas as pd \n",
"import matplotlib.pyplot as plt\n",
"import seaborn as sns # for data visualization \n",
"\n",
"\n",
"import IPython.display as ipd #To play sound in notebook\n",
"import scipy as sci\n",
"import wave \n",
"from scipy.io import wavfile \n",
"\n",
"import librosa "
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "OFEZe0wzpLdP",
"colab_type": "code",
"colab": {}
},
"source": [
""
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "WUp-xuxBUHie",
"colab_type": "code",
"outputId": "2b5e59ed-7804-4f6a-8a00-4fa62000876e",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 34
}
},
"source": [
"import os \n",
"print(os.listdir(\"drive/My Drive/CSC490Final-AudioTagger\"))"
],
"execution_count": 20,
"outputs": [
{
"output_type": "stream",
"text": [
"['FSDKaggle2018.audio_test']\n"
],
"name": "stdout"
}
]
},
{
"cell_type": "code",
"metadata": {
"id": "K7_TeQythJZs",
"colab_type": "code",
"colab": {}
},
"source": [
"audio_test_file = (\"drive/My Drive/CSC490Final-AudioTagger/FSDKaggle2018.audio_test\")"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "tOT2j9MfiSxD",
"colab_type": "code",
"colab": {}
},
"source": [
""
],
"execution_count": 0,
"outputs": []
}
]
}