آڈیو AI گائیڈ
نیورل آڈیو کوڈیکس
نیورل آڈیو کوڈیک اعصابی نیٹ ورکس کا ایک جوڑا ہے جو آواز کو نمبروں کے ایک چھوٹے سلسلے میں سکیڑتا ہے اور اس سے ویو فارم کو دوبارہ بناتا ہے۔
اس گائیڈ کو سنیں۔اے آئی نے بیان کیا۔ · ~8 min
اس صفحہ پر9 منٹ پڑھیں
جائزہ
Google کا SoundStream (2021)، Meta کا EnCodec (2022) اور Descript کا DAC (2023) جیسے سسٹمز کم بٹ ریٹس پر روایتی کوڈیکس کو شکست دیتے ہیں، اور ان کے ڈسکرِیٹ ٹوکنز اب وہ ذخیرہ الفاظ ہیں جس کی پیشگوئی تقریر اور موسیقی کے جنریٹرز جیسے کہ VALL-E، MusicGen اور Moshi کرتے ہیں۔
اہم نکات
- نیورل آڈیو کوڈیک آڈیو کو عدد کے کوڈز میں سکیڑنے اور ویو فارم کو دوبارہ بنانے کے لیے ایک تربیت یافتہ انکوڈر، کوانٹائزر اور ڈیکوڈر کا استعمال کرتا ہے۔
- ریزیجول ویکٹر کوانٹائزیشن ایسے کوانٹائزرز کو اسٹیک کرتی ہے جن میں سے ہر ایک اس چیز کو انکوڈ کرتا ہے جو پچھلے والے چھوڑ گئے تھے، لہذا بعد کے کوڈ بکس کو چھوڑنا بٹ ریٹ کو آسانی سے کم کرتا ہے۔
- Google کے سننے کے ٹیسٹس میں، 3 kbps پر SoundStream نے 24 kHz آڈیو پر 12 kbps پر Opus کوڈیک سے بہتر کارکردگی کا مظاہرہ کیا۔
- Descript کا DAC 44.1 kHz آڈیو کو تقریباً 90 گنا، 8 kbps تک سکیڑتا ہے، جس میں تقریر، موسیقی اور دیگر آوازوں کے لیے ایک ہی ماڈل ہوتا ہے۔
- کوڈیک ٹوکنز آڈیو لینگویج ماڈلز جیسے کہ VALL-E، MusicGen اور Kyutai کے Moshi کا ذخیرہ الفاظ ہیں۔
گہرا غوطہ
A codec, short for coder-decoder, turns audio into a compact bitstream and back. Traditional codecs such as MP3, Opus and EVS are designed by engineers using signal processing: a transform splits the sound into frequency components, a perceptual model decides which components the ear will not miss, and the rest are quantized, meaning rounded to a limited set of values, then entropy coded. A neural audio codec replaces most of that hand-designed pipeline with networks trained on large amounts of audio. An encoder network turns the waveform into a short sequence of vectors, a quantizer turns each vector into a few integers, and a decoder network rebuilds a waveform from those integers. Because the whole chain is trained end to end, the system learns what to keep and what to discard.
Google's SoundStream, posted in July 2021 by Neil Zeghidour and colleagues, set the template. Its encoder is a stack of convolutions that downsamples by strides of 2, 4, 5 and 8, so one embedding is produced for every 2 x 4 x 5 x 8 = 320 samples. At 24,000 samples per second, that is 75 frames per second. To hit 6 kbps, each frame gets 80 bits. A plain vector quantizer would need a codebook, a lookup table of learned vectors, with 2 to the 80th power entries, which the paper calls obviously unfeasible. SoundStream instead uses residual vector quantization (RVQ): the first quantizer picks the nearest of 1,024 codebook vectors, the second quantizes what the first missed, and so on. Eight quantizers with 1,024 entries each, 10 bits apiece, give the 80 bits.
RVQ also makes bitrate adjustable. SoundStream trained with quantizer dropout, randomly using only the first few quantizers in each training example, so a single model works at 3 to 18 kbps by sending more or fewer codebook indices. Training combines reconstruction losses, which compare the output with the original, and adversarial losses from discriminator networks that try to tell decoded audio from real audio, a technique borrowed from neural speech synthesis. Both encoder and decoder use only causal convolutions, which look only at past samples, so the codec can stream with latency set by the 320-sample frame. In the paper's listening tests, SoundStream at 3 kbps outperformed Opus at 12 kbps and approached EVS at 9.6 kbps.
Meta's EnCodec, posted in October 2022 by Alexandre Defossez, Jade Copet, Gabriel Synnaeve and Yossi Adi, kept the encoder, RVQ and decoder design but simplified training with a single multiscale spectrogram discriminator and added a loss balancer, which sets each loss weight as a fraction of the total gradient. It also used a small transformer language model with entropy coding to shrink the bitstream by up to 40% while staying faster than real time. Its models use up to 32 codebooks of 1,024 entries, 75 frames per second at 24 kHz, and in MUSHRA listening tests, a standard method in which listeners score clips against a hidden reference, it beat Opus, EVS and Google's Lyra-v2 across speech, noisy speech and music.
Descript's Descript Audio Codec (DAC), from the June 2023 paper on Improved RVQGAN by Rithesh Kumar, Prem Seetharaman and colleagues, pushed quality further. It compresses 44.1 kHz audio about 90 times, to 8 kbps, with one model for speech, music and environmental sound. The authors identified codebook collapse, in which many codebook entries go unused and bandwidth is wasted, and fixed it with two techniques from image models: projecting vectors to a low-dimensional space before lookup and normalizing them. They also found that standard quantizer dropout hurt full-bitrate quality and applied it to only some training examples. In their listening tests DAC scored much higher than EnCodec at all bitrates tested, though still below the original audio.
The second role of these codecs turned out to be as important as compression. Their integer codes are discrete tokens, the same kind of input language models are built to predict. VALL-E trained a language model on codec tokens to clone a voice from 3 seconds of audio, MusicGen interleaves several codebook streams so one transformer can generate music, and Kyutai's Mimi codec, described in the September 2024 Moshi paper, distills semantic information from the WavLM speech model into its first quantizer so that a single token stream carries both meaning and sound at 12.5 frames per second.
Compared with traditional codecs, neural codecs win most clearly at low bitrates, where engineered codecs introduce audible artifacts. At higher bitrates, established codecs remain efficient, standardized and supported by every device. Neural codecs cost more computation, need a matching decoder on both ends, and can fail in unfamiliar ways: rather than adding hiss, a generative decoder can produce plausible but wrong detail, such as smeared consonants or altered timbre, especially on sounds unlike its training data. Because codec tokens let a language model continue a voice from a 3-second sample, as VALL-E showed, the same technology that compresses speech also makes convincing voice imitation easier.
In practice, using a neural codec is simple: EnCodec and DAC publish code and pretrained weights, and encoding or decoding runs on a laptop. EnCodec's paper targeted models that run in real time on a single CPU core. Training a new codec is a larger job, because it needs large and varied audio collections and adversarial training with several discriminator networks.
04کام کی مثال
کسی کوڈیک کے ڈیزائن سے اس کا بٹ ریٹ معلوم کرنا
ایک کوڈیک لیں جو 24 kHz آڈیو وصول کرتا ہے اور اسٹریڈز 2، 4، 5 اور 8 کے ساتھ ڈاؤنسمپل کرتا ہے۔
اسٹریڈز کو ضرب دیں: 2 x 4 x 5 x 8 = 320 سیمپل فی فریم، لہٰذا 24,000 / 320 = 75 فریم فی سیکنڈ۔
8 ریزیڈول کوانٹائزرز منتخب کریں، ہر ایک کے پاس 1,024 اندراجات کا کوڈ بکس ہو، جو ہر انڈیکس کے لیے 10 بٹس کے برابر ہے۔
فی فریم بٹس: 8 x 10 = 80؛ بٹ ریٹ: 75 x 80 = 6,000 بٹس فی سیکنڈ، یا 6 kbps۔
پہلے 4 کوانٹائزرز پر جائیں: 75 x 4 x 10 = 3,000 بٹس فی سیکنڈ۔
ایک سنگل کوانٹائزر کے ساتھ 80 بٹس کا موازنہ کریں: اس کے کوڈ بکس کو 2 کی 80ویں طاقت کے اندراجات کی ضرورت ہوگی۔
جو یہ دکھاتا ہے۔
سیکھنے والا SoundStream کی 6 kbps کنفیگریشن کو دوبارہ بناتا ہے اور دیکھتا ہے کہ ریزیڈول کوانٹائزیشن بٹ ریٹ کو معیار کے بدلے میں کیسے تبدیل کرتی ہے، زیادہ یا کم کوڈ بکس انڈیکس بھیج کر، جبکہ ایک ناقابلِ تصور طور پر بڑے سنگل کوڈ بکس سے بچا جاتا ہے۔
حقیقی دنیا کا نفاذ
کم بٹ ریٹ کالز: 24 kHz آڈیو پر سننے کے ٹیسٹ میں، SoundStream 3 kbps پر Opus کوڈک 12 kbps سے بہتر ریٹ کیا گیا، اور ایک ہی ماڈل نے 3 سے 18 kbps تک کے بٹ ریٹس کو کور کیا جبکہ یہ حقیقی وقت میں اسمارٹ فون CPU پر چل رہا تھا۔
موسیقی اور سٹیریو کمپریشن: Meta کا EnCodec 24 kHz مونو آڈیو کے لیے 1.5، 3، 6، 12 اور 24 kbps اور 48 kHz سٹیریو کے لیے 3 سے 24 kbps سپورٹ کرتا ہے، کوڈ اور ماڈلز GitHub پر ریلیز کیے گئے۔
ٹیکسٹ ٹو اسپیچ: Microsoft کا VALL-E (جنوری 2023) نے ایک آف-دی-شیلف نیورل کوڈک کے ڈسکریٹ کوڈز پر 60,000 گھنٹے انگریزی تقریر کے ساتھ ایک زبان ماڈل ٹرین کیا، اور 3 سیکنڈ کے نمونے سے ایک آواز کو کلون کیا۔
موسیقی کی تخلیق: Meta کا MusicGen (NeurIPS 2023) ایک واحد ٹرانسفارمر ہے جو کمپریسڈ موسیقی ٹوکنز کی متعدد متوازی سٹریمز کی پیش گوئی کرتا ہے، متن یا ملڈی سے مونو یا سٹیریو موسیقی پیدا کرتا ہے۔
زبانی مکالمہ: Kyutai کا Moshi اپنے Mimi کوڈک، 8 کوانٹائزرز 12.5 فریم فی سیکنڈ پر 1.1 kbps کے ساتھ استعمال کرتا ہے، صارف اور اپنی تقریر کو متوازی ٹوکن سٹریمز کے طور پر ماڈل کرتا ہے، جس کی رپورٹ شدہ عملی لیٹنسی 200 ms ہے۔
نیورل آڈیو کوڈیکس کا مستقبل
Research on neural codecs is now driven as much by generative modeling as by compression. Lower frame rates mean shorter token sequences for a language model, which is why Kyutai's Mimi runs at 12.5 frames per second, compared with 75 for SoundStream and EnCodec. Distilling semantic information into the first codebook, as Mimi does with WavLM features, aims to give a single token stream that captures both what is said and how it sounds, whereas earlier audio language models such as AudioLM combined codec tokens with separate semantic tokens from a self-supervised speech model. Open problems include closing the remaining quality gap at full bandwidth, which the DAC authors noted still exists even at their highest bitrate, handling music, overlapping speakers and noisy recordings as well as clean speech, and keeping decoders cheap enough for phones and real-time calls. Standardization is another gap: traditional codecs are interoperable because their bitstreams are specified, while each neural codec currently needs its own decoder weights, so a stream encoded with one model cannot be decoded by another. The ability of codec-based language models to imitate a voice from a few seconds of audio has also raised questions about consent, watermarking and detection of synthetic speech. How well detectors and watermarks survive re-encoding by a different codec is an active research topic with no settled answer.
اسے عملی جامہ پہنانا
یہ کیوں اہمیت رکھتا ہے۔
- رسائی اور رسائی. یہ نقل، بیان اور صوتی انٹرفیس کے ذریعے رسائی کو بہتر بناتا ہے۔
- لاگت اور بجٹ. میڈیا ٹیمیں چھوٹے بجٹ کے ساتھ پالش آڈیو کو تیزی سے بھیج سکتی ہیں۔
- رفتار اور پیمانہ. کسٹمر کا سامنا کرنے والے نظام بڑے پیمانے پر بولی جانے والی بات چیت پر کارروائی کر سکتے ہیں۔
پر نگاہ رکھیں
- رضامندی غائب ہونے پر آواز کے غلط استعمال اور نقالی کے خطرات بڑھ جاتے ہیں۔
- درستگی لہجوں، بولیوں، یا شور والے ماحول میں گر سکتی ہے۔
- واضح لیبلنگ کے بغیر مصنوعی آڈیو کو مستند تقریر کے لیے غلط سمجھا جا سکتا ہے۔
اگلے اقدامات
- آواز کی گرفتاری، کلوننگ اور دوبارہ استعمال کے لیے واضح رضامندی حاصل کریں۔
- متنوع اسپیکرز اور پس منظر کے حالات میں معیار کی جانچ کریں۔
- وضاحت کریں کہ جب ایک انسان کو آؤٹ پٹس کا جائزہ لینا یا منظور کرنا ضروری ہے۔
- مصنوعی آڈیو کو لیبل کریں اور جوابدہی کے لیے پرووینس ریکارڈ رکھیں۔
ذرائع اور مزید پڑھنا
- arXivSoundStream: ایک اینڈ-ٹو-اینڈ نیورل آڈیو کوڈک
- arXivہائی فڈیلیٹی نیورل آڈیو کمپریشن
- arXivبہتر RVQGAN کے ساتھ ہائی-فڈیلیٹی آڈیو کمپریشن
- arXivMoshi: حقیقی وقت کے مکالمے کے لیے ایک تقریر-متن بنیاد ماڈل
- arXivنیورل کوڈک لینگویج ماڈلز زیرو-شوٹ ٹیکسٹ ٹو اسپیچ سنتھیسائزرز ہیں
- arXiv (NeurIPS 2023)سادہ اور قابل کنٹرول موسیقی تخلیق
دریافت کرتے رہیں
مفت نیوز لیٹر
روزانہ AI بریفنگ حاصل کریں
ہر ہفتے کے دن صبح تین تصدیق شدہ AI کہانیاں، سادہ انگریزی میں لکھی گئیں۔ ہمیشہ کے لیے مفت، کوئی اشتہار نہیں۔
ہر ہفتے کے دن ایک ای میل۔ ایک کلک میں ان سبسکرائب کریں۔ ہم کبھی بھی آپ کا پتہ فروخت یا شیئر نہیں کرتے۔
اپنے آپ کو جانچیں۔
نیورل آڈیو کوڈکس کوئز لیں
ہر جواب پر فوری فیڈبیک، اور کورس پاس کرنے کے بعد قابلِ تصدیق ID کے ساتھ شیئر کرنے کے قابل سرٹیفکیٹ۔
مفت AI تعلیم کی حمایت کریں۔ AI Understanding ایک 501(c)(3) غیر منافع بخش ادارہ ہے — کوئی اشتہار نہیں، کوئی پے وال نہیں، کبھی نہیں۔ عطیہ کریں۔
اکثر پوچھے گئے سوالات
نیورل آڈیو کوڈکس کیا ہیں؟
ایک نیورل آڈیو کوڈک دو نیورل نیٹ ورکس کا جوڑ ہے جو آواز کو چھوٹے نمبر سٹریم میں کمپریس کرتا ہے اور اس سے ویو فارم دوبارہ تعمیر کرتا ہے۔ سیسٹمز جیسے Google کا SoundStream (2021)، Meta کا EnCodec (2022) اور Descript کا DAC (2023) کم بٹ ریٹس پر روایتی کوڈکس کو شکست دیتے ہیں، اور ان کے ڈسکریٹ ٹوکن اب وہ لغت ہیں جو VALL-E، MusicGen اور Moshi جیسے تقریر اور موسیقی جنریٹرز پیش گوئی کرتے ہیں۔
نیورل آڈیو کوڈیک بنیادی طور پر کون سی دو چیزیں کرتا ہے؟
نیورل کوڈیک ایک انکوڈر-ڈیکوڈر نیٹ ورک ہے جو ایک ویوفارم کو کمپیکٹ ڈسکریٹ ٹوکنز میں کمپریس کرتا ہے اور پھر ان سے آڈیو کو دوبارہ تشکیل دیتا ہے۔
کون سی کوانٹائزیشن تکنیک ساؤنڈ اسٹریم اور این کوڈیک جیسے کوڈیکس کے لیے مرکزی ہے؟
RVQ متعدد کوڈ بکس اسٹیک کرتا ہے جہاں ہر ایک پچھلی کی بقایا غلطی کو انکوڈ کرتا ہے، جس سے کوالٹی بمقابلہ بٹریٹ ٹریڈ آف کو فعال کیا جاتا ہے۔
بقایا ویکٹر کوانٹائزیشن میں، ہر یکے بعد دیگرے کوڈ بک کو کیا انکوڈ کرتا ہے؟
پہلی کوڈ بک ایک موٹے تخمینے دیتی ہے، اور ہر بعد کی کوڈ بک بہتر تفصیل شامل کرتے ہوئے بقیہ خرابی کو مقدار بخشتی ہے۔
تخلیقی آڈیو ماڈلز کے لیے نیورل آڈیو کوڈیکس کیوں اہم ہیں؟
کوڈیکس کے ذریعہ تیار کردہ مجرد ٹوکن وہ الفاظ بن جاتے ہیں جس کی آڈیو لینگویج ماڈل پیشین گوئی اور تخلیق کرتے ہیں۔
نیورل کوڈیک میں مزید کوڈ بکس کا استعمال آؤٹ پٹ کو کیسے متاثر کرتا ہے؟
کوڈ بکس کو شامل کرنے سے بٹ ریٹ بڑھتا ہے لیکن زیادہ تفصیل حاصل کرتا ہے، وفاداری کو بہتر بناتا ہے۔ کمپریشن کے لیے کم تجارت کا معیار استعمال کرنا۔
سیکھتے رہیں
متعلقہ گائیڈز
اس موضوع کے لیے مزید گائیڈز چنے گئے ہیں۔