Mathematica: WAV फ़ाइलों को संपादित करें और सहेजें
वुल्फ्राम मैथेमेटिका के साथ आप WAV फ़ाइलों को आयात, विश्लेषण, संपादन और निर्यात कर सकते हैं। हम आपको बताएंगे कि कैसे।
Mathematica में WAV फ़ाइलें आयात करें
सरल कमांड "ऑडियो = इम्पोर्ट [पाथ, कमांड]" के साथ, आप WAV फाइलों से मैथमेटिका में डेटा आयात कर सकते हैं। पथ और आदेश को उद्धृत किया जाना चाहिए। आसान पथ प्रविष्टि के लिए सहायता चित्र गैलरी में दी गई है। आप निम्न आदेशों के साथ WAV फ़ाइल के विभिन्न तत्वों को लोड कर सकते हैं:
- "तत्व" आपको दिखाता है कि WAV फ़ाइल की कौन सी जानकारी आप Mathematica में आयात कर सकते हैं
- "AudioChannels" आपको WAV फ़ाइल में एम्बेडेड चैनलों की संख्या के बारे में सूचित करता है।
- "SampleRate" नमूना दर को आउटपुट करता है
- "AudioEncoding" इंगित करता है कि नमूने कैसे एन्कोड किए गए हैं। एक नियम के रूप में, मूल्य "Integer16" और "Integer32" के बीच होता है, यानी 16 से 32 बिट्स के साथ पूर्णांक। 4 से 64 बिट्स से एनकोडिंग संभव है।
- "डेटा" एक मैट्रिक्स है जिसमें प्रत्येक पंक्ति में एक चैनल का रॉ डेटा होता है। चेतावनी: चूंकि इस मैट्रिक्स में सभी ऑडियो सामग्री है, यह कभी-कभी बहुत बड़ी हो सकती है। 4 जीबी तक की फाइलें लोड की जा सकती हैं। यहाँ आपको निश्चित रूप से उपयोग करना चाहिए ";" डेटा के आउटपुट को दबाएं। चूंकि आपने मैट्रिक्स को "ऑडियो" नाम दिया था, इसलिए आप इसके साथ काम करना जारी रख सकते हैं।
- "ध्वनि" का उपयोग करते हुए गणितज्ञ फ़ाइल को तरंग और स्पेक्ट्रम प्रदर्शन सहित लोड करता है और ध्वनि खेलने के लिए एक छोटा खिलाड़ी।
- "नियम" के साथ सभी जानकारी मैट्रिक्स में आयात की जाती हैं। इस क्रम में छह लाइनों में "AudioChannels", "AudioEncoding", "Data", "SampledSoundList", "SampleRate" और "Sound" शामिल हैं। सावधानी: यह मैट्रिक्स ऑडियो फ़ाइल की तुलना में काफी बड़ा है, इसलिए आपको निश्चित रूप से ";" के साथ डेटा का उत्पादन करना चाहिए। रोकें।
Mathematica में WAV फ़ाइलों का विश्लेषण और संपादन करें
"डेटा" का उपयोग करके आयातित RAW डेटा को किसी अन्य तालिका की तरह Mathematica में उपयोग और संपादित किया जा सकता है। निम्नलिखित आदेश विशेष रूप से ऑडियो सामग्री के लिए दिलचस्प हैं:
- अब आप "ऑडियो" मैट्रिक्स में किसी भी मूल्य को प्रदर्शित कर सकते हैं और इसे अपनी इच्छानुसार बदल सकते हैं।
- "आयाम [ऑडियो]" आपको पंक्तियों और स्तंभों की संख्या देता है, अर्थात प्रति चैनल नमूनों की संख्या।
- "क्षेत्र = का उपयोग करें [ऑडियो [[एक्स, ऑल]], {प्रारंभ मूल्य, समाप्ति मूल्य}];" आप चैनल X का हिस्सा निकाल सकते हैं।
- "स्पेक्ट्रम = फूरियर [क्षेत्र], " इस भाग का एक फूरियर विश्लेषण करता है।
- आप अपनी इच्छानुसार वर्णक्रमीय घटकों को भी बदल सकते हैं।
- "Re [स्पेक्ट्रम]", "Im [स्पेक्ट्रम]", "Abs [स्पेक्ट्रम]" और "Arg [स्पेक्ट्रम]" आउटपुट वास्तविक भाग, काल्पनिक भाग, आयाम और वर्णक्रमीय घटकों के चरण।
Mathematica से WAV फ़ाइलें निर्यात करें
हेरफेर किए गए ऑडियो डेटा को फिर से WAV फ़ाइल बनाने के लिए, बस "निर्यात [पथ, कमांड]" दर्ज करें। WAV फ़ाइल को सही ढंग से सेट करने के लिए निम्न कमांड का उपयोग करें:
- निर्यात करने से पहले, आपको "ऑडियो / = मैक्स [Abs [ऑडियो]?]" का उपयोग करना चाहिए | 1 | सामान्य। 1 से नीचे और -1 से ऊपर के मान ओवरराइड हैं।
- "" SampleRate "-> 44100" प्रति सेकंड 44100 नमूनों में ऑडियो सामग्री का निर्यात करता है।
- "" AudioEncoding "->" Integer16 "" प्रति नमूना 16 बिट्स के साथ ऑडियो फ़ाइल को एन्कोड करता है।
- "" AudioChannels "-> 2" के साथ आप यह सुनिश्चित कर सकते हैं कि केवल पहले 2 चैनल निर्यात किए जाते हैं, भले ही ऑडियो सामग्री में अधिक चैनल हों।
आप यहां वुल्फराम अल्फा पर टिप्स पा सकते हैं। ऑडेसिटी प्रोग्राम के साथ कैसे काम करें। हम यहां बताते हैं।
नवीनतम वीडियो
मैथेमेटिका में प्रवेश करना थोड़ा थकाऊ है: रास्तों को उद्धरण चिह्नों में संलग्न किया जाता है और फ़ोल्डरों को स्लैश प्रतीक "/" से नहीं बल्कि दो बैकस्लैश "\\" द्वारा अलग किया जाता है। बस एक्सप्लोरर से पथ को कॉपी करने से यहां काम नहीं होता है।
सबसे आसान तरीका "इंसर्ट" -> "फाइलपथ" का उपयोग करना है
"चुनें ... "filePath
"चुनें ...">
"filePath
"चुनें ..." />
"चुनें ..." />
और वांछित फ़ाइल में एक्सप्लोरर विंडो में यहां नेविगेट करें। गणितज्ञ तब सही वर्तनी में फ़ाइल पथ नोट करता है।