tonic commited on
Commit
9902c89
0 Parent(s):

Initial dataset commit

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. app.py +14 -0
  3. craig.wav +3 -0
  4. info.txt +11 -0
  5. main.py +57 -0
  6. part_1.wav +3 -0
  7. part_10.wav +3 -0
  8. part_100.wav +3 -0
  9. part_11.wav +3 -0
  10. part_12.wav +3 -0
  11. part_13.wav +3 -0
  12. part_14.wav +3 -0
  13. part_15.wav +3 -0
  14. part_16.wav +3 -0
  15. part_17.wav +3 -0
  16. part_18.wav +3 -0
  17. part_19.wav +3 -0
  18. part_2.wav +3 -0
  19. part_20.wav +3 -0
  20. part_21.wav +3 -0
  21. part_22.wav +3 -0
  22. part_23.wav +3 -0
  23. part_24.wav +3 -0
  24. part_25.wav +3 -0
  25. part_26.wav +3 -0
  26. part_27.wav +3 -0
  27. part_28.wav +3 -0
  28. part_29.wav +3 -0
  29. part_3.wav +3 -0
  30. part_30.wav +3 -0
  31. part_31.wav +3 -0
  32. part_32.wav +3 -0
  33. part_33.wav +3 -0
  34. part_34.wav +3 -0
  35. part_35.wav +3 -0
  36. part_36.wav +3 -0
  37. part_37.wav +3 -0
  38. part_38.wav +3 -0
  39. part_39.wav +3 -0
  40. part_4.wav +3 -0
  41. part_40.wav +3 -0
  42. part_41.wav +3 -0
  43. part_42.wav +3 -0
  44. part_43.wav +3 -0
  45. part_44.wav +3 -0
  46. part_45.wav +3 -0
  47. part_46.wav +3 -0
  48. part_47.wav +3 -0
  49. part_48.wav +3 -0
  50. part_49.wav +3 -0
.gitattributes ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *.wav filter=lfs diff=lfs merge=lfs -text
2
+ *.json filter=lfs diff=lfs merge=lfs -text
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydub import AudioSegment
2
+
3
+ def split_wav(file_name, number_of_parts):
4
+ audio = AudioSegment.from_wav(file_name)
5
+
6
+ length = len(audio) // number_of_parts
7
+
8
+ for i in range(number_of_parts):
9
+ start = length * i
10
+ end = start + length if i < number_of_parts - 1 else len(audio)
11
+ part = audio[start:end]
12
+ part.export(f"part_{i+1}.wav", format="wav")
13
+
14
+ split_wav("craig.wav", 100)
craig.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:974199d6dc0de100886ad890524cfb09b356a2e63a5bbb729d6f058cad6b5279
3
+ size 392277618
info.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Recording 8svf87tRmP
2
+
3
+ Guild: 🌟AI Tonic🍹🌟 (1109943800132010065)
4
+ Channel: ❤General (1109943800840851590)
5
+ Requester: Tonic (tonic_1#0) (994979735488692324)
6
+ Start time: 2024-01-11T00:54:50.108Z
7
+
8
+ Tracks:
9
+ Tonic (tonic_1#0) (994979735488692324)
10
+ n_raidenAI (nelectronica#0) (1112867759420878888)
11
+ John P (ehlive#0) (676956027727380489)
main.py ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import json
3
+
4
+ def transcribe_audio(file_path, api_key, model='whisper-1', language=None, prompt=None, response_format='json', temperature=0):
5
+ url = "https://api.openai.com/v1/audio/transcriptions"
6
+
7
+ headers = {
8
+ "Authorization": f"Bearer {api_key}"
9
+ }
10
+
11
+ with open(file_path, 'rb') as f:
12
+ files = {
13
+ 'file': (file_path, f, 'audio/wav')
14
+ }
15
+
16
+ data = {
17
+ 'model': (None, model),
18
+ 'language': (None, language),
19
+ 'prompt': (None, prompt),
20
+ 'response_format': (None, response_format),
21
+ 'temperature': (None, str(temperature))
22
+ }
23
+
24
+ response = requests.post(url, headers=headers, files=files, data=data)
25
+ return response.json()
26
+
27
+ def save_transcription(results, json_filename, text_filename):
28
+ # Save as JSON
29
+ with open(json_filename, 'w') as json_file:
30
+ json.dump(results, json_file, indent=4)
31
+
32
+ # Extract and save as text
33
+ transcripts = [result.get('choices')[0].get('text') if result.get('choices') else "" for result in results]
34
+ with open(text_filename, 'w') as text_file:
35
+ for transcript in transcripts:
36
+ text_file.write(transcript + "\n\n")
37
+
38
+ # Replace 'your_api_key_here' with your actual OpenAI API key
39
+ api_key = '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'
40
+
41
+ # Generate list of audio files
42
+ audio_files = [f'part_{i}.wav' for i in range(1, 101)]
43
+
44
+
45
+ # Process each file and collect the results
46
+ results = []
47
+ for file_path in audio_files:
48
+ try:
49
+ result = transcribe_audio(file_path, api_key)
50
+ results.append(result)
51
+ except Exception as e:
52
+ print(f"Error processing {file_path}: {e}")
53
+
54
+ # Save the results
55
+ save_transcription(results, 'transcription.json', 'transcription.txt')
56
+
57
+ print("Transcription saved to 'transcription.json' and 'transcription.txt'")
part_1.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb2af8273747dbef1b97f1265b64302299eae10aacb3f9763d24b6f18f2811f4
3
+ size 3922796
part_10.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c5b0f9b51579afda4c102216ef48a88826cf88021823c029a31300b2b72b60b
3
+ size 3922796
part_100.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a43bd4963d02912fb8b5caa8348a72e0b7f4767fbd0edfc2fe59a9316d46d25
3
+ size 3925100
part_11.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b7a9161cd39696941d3a4c316dea4a7cd89c9a43cdb7930312530546db918da
3
+ size 3922796
part_12.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5fd8d33310fb87f922514f3c7b8780634a982f433dc33dc61e0ccc0e419ee198
3
+ size 3922796
part_13.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90574af70bc3c682009b8a2ccb22c1a541aba1f6c4f1254a899c89ccee727011
3
+ size 3922796
part_14.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8b81c39a8d769c3580d9815955f98ae383b8db527a2db330d0901df55150681
3
+ size 3922796
part_15.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02f4e21d7dc2b563847123dd96a2717bdea874fadc5ec2cda0fe5c461a22bc0e
3
+ size 3922796
part_16.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e75352ee26813ddeaefac5805eabbf8e2e73dc3b0a26f7d1c9f6baacc80d89f
3
+ size 3922796
part_17.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77d98c2271ab3d82ac377810bb76915a31a0903d1bccef67b910034ab6ac7348
3
+ size 3922796
part_18.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e404455386fe349148b948de578ee36c54aaf46a355284e763ff706b8d66b5d
3
+ size 3922796
part_19.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92ab1ffad20ecf1ae9bb0dafebd3b5f02b72f6623df93960307df4d96376765f
3
+ size 3922796
part_2.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acd35b63af0b2ab4e58883496b80c08afbdf1826f17692b8fa622de0563b289f
3
+ size 3922796
part_20.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9f094c935abeed72321bce340196294fdb7d2fdd3ae71a9190e1a07b6b517be
3
+ size 3922796
part_21.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5085c132e31f2e83f36466f76b163eb958131f26fc0caa95ea2a063fe0fc1d32
3
+ size 3922796
part_22.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aeb8e092d1a36e90a6fac6d461405ed5221dddc56bc12fad16317bcaa606644
3
+ size 3922796
part_23.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:120ef7cf30134c18765a4e9f3a1afcdf1de6553a8701bd2f91605753941e131e
3
+ size 3922796
part_24.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f1eaf8f35d496148709b63350cf5250163d1347912f70a77502c6851eb78e34
3
+ size 3922796
part_25.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:456c38ba0ac9073a2aabbeae1ddfa3eb5442317b6890057996f22dfd074234e8
3
+ size 3922796
part_26.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5d596d312536960203dfb38ff18cd9e35e9efd575e04442c4710b499d70d8a6
3
+ size 3922796
part_27.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb1ea36a2acaf3b0970e9e3d47c861e97d79ad60d076611a24fbe4bfa39100a0
3
+ size 3922796
part_28.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a28f44bd1a06cbea27d06826fef39b2a2cc50cf87967d1dbe724bd225668d4c8
3
+ size 3922796
part_29.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d06d6fb98781ea3b8056e09eee04477e360c9016b606e3beaeb6b6e29789983d
3
+ size 3922796
part_3.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f852ab757aa16e496983dc09268ac910c39faf1cd9831fa8e2f143f7c5f8793d
3
+ size 3922796
part_30.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4962d1e2dafabc56bc861e949372acec34273be6e9ee46bd3254045ad16993c2
3
+ size 3922796
part_31.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a20be6549ce24bfcb06af460a9b76b3a679cd1f21a25fea40cec831371ead28a
3
+ size 3922796
part_32.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6fd921c349d9f04436ef2ae07914874332ed679bdfb15f02727106a8c94cc0bc
3
+ size 3922796
part_33.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2922ad5a013517579aaa4f132d3e838f5da2c147f1d1d78c37506cf2829fe1a
3
+ size 3922796
part_34.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a157fc1102574c431a5ca6d4d7784493700e6a5ad031179749f19b03d2ff29c6
3
+ size 3922796
part_35.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db6689e083dfde775cba1345f50439e85e908af59131dd6cc8ae0c6583e05d32
3
+ size 3922796
part_36.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8cc66b18ef7f2e42dd86a74e4e7f3fc8ab44ce8e63202fc29eb79999623d13c7
3
+ size 3922796
part_37.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d7df649b3737f21f4248bd15d8f21b3c7389ec4ab933f0cd6d2284d2eccceaf
3
+ size 3922796
part_38.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18aba0fc1d69700b6cb690bac2c0efedd3e0a9741e9ed0acd92bfd1578cd941b
3
+ size 3922796
part_39.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:192e07bc6ed149c100dc594a7e4904c5237259a8b066f6d097ffde8adff69156
3
+ size 3922796
part_4.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f4d859393589b3c2d08533deeb9a02b3833787886a73164cdd045455365c6446
3
+ size 3922796
part_40.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6043ccfde9b43cbfb9a4326ae94bb86cf5d95c384d38c19ea0c9286f534cdf9
3
+ size 3922796
part_41.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17634c6aa770927460ead207823c255a23090a4e82b57ff2d09a54d948a9f823
3
+ size 3922796
part_42.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b154255072b5ff09523d6af7d5076c837fba17f1c492b634a1488beeb395599b
3
+ size 3922796
part_43.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:faef70be785e90f32acab1d17307bcec439cc88c0a1b98db4770227110a75ac6
3
+ size 3922796
part_44.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f049841819b7ea0d1394dfbf3c5186f8d60b04263660c8dc8b902a2f0ab68701
3
+ size 3922796
part_45.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee5945f2553336d0ec08ae28f6081cbcd46ef44fa9ff75752b67afc74cf364ff
3
+ size 3922796
part_46.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e608d4eb84cc3ca36f728ce540058813afe817392ff15d7db82c0bca0eaa2d1
3
+ size 3922796
part_47.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b33a1b9afdfd8053ea974bfa23a3607595d6eba8122ae9c3200f4b8f77df710d
3
+ size 3922796
part_48.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11ca6e5cab818a438f752a2321304138a2f18701ccbc2c5e40f8c8e7a097ceb3
3
+ size 3922796
part_49.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4806dbcb7ac7310918ec3d99bae072590ac8409944685bd872c3b68e92f19480
3
+ size 3922796