HƯỚNG DẪN AI âm thanh

Âm thanhLM

AudioLM is a Google Research system, first described in September 2022, that generates realistic speech and piano music by treating audio as a sequence of discrete tokens and predicting them with language models.

Nghe hướng dẫn nàyAI thuật lại · ~8 min

Trên trang nàyđọc 9 phút
  1. Tổng quan
  2. Những điểm chính rút ra
  3. Lặn sâu
  4. Counting AudioLM's tokens for a 10-second clip
  5. Triển khai trong thế giới thực
  6. Tương lai của AudioLM
  7. Đưa nó vào thực tế
  8. Nguồn tham khảo và đọc thêm
  9. Tiếp tục khám phá
  10. Câu hỏi thường gặp

Tổng quan

Trained on audio alone, without transcripts, it continues a 3-second voice prompt in the same voice and style, and its token hierarchy became a template for later audio generators.

Những điểm chính rút ra

  1. AudioLM generates audio by predicting discrete tokens with Transformers, using semantic tokens for content and SoundStream acoustic tokens for sound quality.
  2. Its semantic tokens come from w2v-BERT features clustered into 1,024 values at 25 tokens per second.
  3. Generation runs in three stages: semantic tokens, coarse acoustic tokens from 4 quantizers, and fine acoustic tokens from 8 more.
  4. Human raters identified real versus AudioLM-continued speech correctly only 51.2% of the time, close to chance.
  5. A simple classifier detected AudioLM speech with 98.6% accuracy, and Google did not release the model publicly.

Lặn sâu

AudioLM is a framework for generating audio with the same technique that powers text language models: predict the next token in a sequence. It was introduced by Zalan Borsos and colleagues at Google Research in a paper first posted in September 2022 and described in a Google blog post on October 6, 2022. Given a short audio prompt, it produces a continuation that keeps the speaker's voice, accent, recording conditions and, for music, the melody and rhythm. It was trained on raw audio only, with no text transcripts or musical notation, and Google said at the time that it was for research and had no plans to release it more broadly.

The central problem AudioLM solves is that audio needs two kinds of information at very different time scales. Long-range structure, which words are said and how a sentence or musical phrase unfolds, changes slowly. Fine acoustic detail, such as a voice's timbre and room echo, changes many times per second. A single token type rarely captures both well. The authors report that tokens from self-supervised speech models capture content but reconstruct audio poorly, while tokens from a neural codec reconstruct audio well but, when modeled alone, produce output without coherent long-term structure. AudioLM's answer is a hybrid tokenization that uses both.

Semantic tokens come from w2v-BERT, a self-supervised speech model from Google that combines contrastive learning with masked language modeling. AudioLM takes w2v-BERT's internal features from the 7th layer of its masked language model module, at 25 vectors per second, and maps each to the nearest of 1,024 cluster centers found with k-means, so each 40 ms of audio becomes one integer. Acoustic tokens come from SoundStream, Google's neural audio codec. AudioLM's SoundStream encodes 16 kHz audio into 50 frames per second, each described by 12 codebook indices from residual vector quantization, a scheme in which each quantizer encodes what the previous ones missed. With 1,024 entries per codebook this is 6,000 bits per second, or 600 tokens per second.

Generation runs in three stages, each a decoder-only Transformer of about 0.3 billion parameters. The semantic stage predicts future semantic tokens from past ones, modeling what is said. The coarse acoustic stage predicts the first 4 SoundStream quantizer levels, conditioned on the semantic tokens and on earlier coarse tokens, which adds speaker identity and recording conditions. The fine acoustic stage predicts the remaining 8 levels from the coarse ones, raising quality from 2,000 to 6,000 bits per second of detail. The SoundStream decoder then turns the tokens back into a waveform. For speech, every component was trained on the unlab-60k split of Libri-Light, about 60,000 hours of English audiobook speech, with each stage trained on 16 TPU v4 chips for 1 million steps.

The evaluations support the design. A speech recognizer transcribing audio generated from ground-truth semantic tokens had a 6.0% word error rate, compared with 2.5% on the original recordings and 6.6% for an earlier system, GSLM. A speaker classifier recognized the prompt's speaker in 92.6% of continuations, but in only 3.2% of samples generated from semantic tokens without an acoustic prompt, confirming that the semantic tokens carry content while the acoustic tokens carry voice. In the human test, 10 raters each judged 100 ten-second clips, half real and half made of a 3-second real prompt plus 7 generated seconds, and their 51.2% success rate was not statistically different from guessing.

AudioLM differs from text-to-speech (TTS) systems, which turn written text into speech and need paired text and audio for training. AudioLM needs no text at all, which means it can model any speech or music it can hear, but it also cannot be told what to say. It differs from codec-only language models, which the authors found sound clean but drift in content, and from earlier spoken language models such as GSLM, which also generate speech from discrete units; on the paper's transcription test, AudioLM's output had a slightly lower word error rate, 6.0% against 6.6%. Later Google work built on the same token split: SoundStorm (May 2023) kept the semantic tokens and replaced the two acoustic stages with a non-autoregressive model, which its authors report is two orders of magnitude faster.

The limits are clear from the paper and the follow-ups. Generation is slow because three autoregressive models produce hundreds of tokens per second of audio one at a time, the bottleneck SoundStorm targets. The speech model was trained on English audiobooks, so it reflects that style and language. Because it is unconditioned, a continuation can wander off topic or produce meaningless but fluent speech. Above all, the ability to continue a stranger's voice from 3 seconds of audio creates obvious risks of impersonation and fraud. The authors trained a detector that caught AudioLM speech with 98.6% accuracy, and Google mentioned audio watermarking as a possible further safeguard.

The practical requirements put AudioLM out of reach for most individuals. Google did not release the trained model, and reproducing it requires tens of thousands of hours of audio, a SoundStream codec, a w2v-BERT-style feature extractor and three 0.3-billion-parameter Transformers trained on TPU clusters. Its main value for learners is as a design pattern: separate what is said from how it sounds, model each with its own tokens, and decode with a neural codec.

04Ví dụ hoạt động

Counting AudioLM's tokens for a 10-second clip

  1. Take a 10-second speech clip sampled at 16 kHz, which is 160,000 samples.

  2. Semantic tokens: w2v-BERT features at 25 per second give 250 semantic tokens, each one of 1,024 cluster IDs.

  3. Acoustic frames: SoundStream's total stride of 320 gives 160,000 / 320 = 500 frames, or 50 per second.

  4. Coarse tokens: 500 frames times 4 quantizers equals 2,000 tokens for the second stage.

  5. Fine tokens: 500 frames times 8 quantizers equals 4,000 tokens for the third stage.

  6. Bitrate check: 500 frames times 12 quantizers times 10 bits each, divided by 10 seconds, equals 6,000 bits per second.

Những gì nó cho thấy

The learner sees that 10 seconds of speech becomes 250 semantic tokens and 6,000 acoustic tokens, which explains why AudioLM splits generation into stages and why SoundStorm later focused on speeding up the acoustic part.

Triển khai trong thế giới thực

Speech continuation: given 3 seconds of a LibriSpeech speaker, AudioLM writes 7 more seconds in the same voice, and in a listening test with 1,000 ratings people picked real versus generated correctly only 51.2% of the time.

Piano continuation: retrained on an internal set of 40,000 hours of piano recordings, AudioLM continued 4-second prompts from the Maestro dataset with consistent melody and rhythm, without any MIDI or sheet-music input.

Synthetic speech detection: alongside the model, Google trained a simple audio classifier that told AudioLM continuations from real SoundStream-compressed speech with 98.6% accuracy on a balanced test set.

Faster generation: Google's SoundStorm (May 2023) keeps AudioLM's semantic tokens but replaces its acoustic stages with parallel decoding, producing 30 seconds of audio in 0.5 seconds on a TPU-v4 and generating multi-speaker dialogue from a transcript.

Tương lai của AudioLM

AudioLM's split between semantic and acoustic tokens influenced how later audio generators were built. Google's own SoundStorm (May 2023) kept AudioLM's semantic tokens and replaced the slow autoregressive acoustic stages with confidence-based parallel decoding, generating 30 seconds of audio in half a second on a TPU-v4 and extending the approach to multi-speaker dialogue from a transcript and short voice prompts. Open research questions include how to make token-based generation fast enough for real-time use, how to add control such as text, style or emotion without losing the ability to learn from untranscribed audio, and how to extend models trained mostly on English audiobooks to many languages and recording conditions. Safety questions are at least as prominent as technical ones. The AudioLM paper reported that people could not reliably tell its 7-second continuations from real speech, while a simple classifier could detect them with 98.6% accuracy. Whether such detectors keep working as generators improve, and whether watermarking, which Google named as a possible direction in 2022, can be made robust to editing and compression, are unresolved. How consent for voice cloning and disclosure of synthetic audio should be handled is also an open question that research alone cannot settle.

Đưa nó vào thực tế

Tại sao nó quan trọng

  • Truy cập và tiếp cận. Nó cải thiện khả năng tiếp cận thông qua phiên âm, tường thuật và giao diện giọng nói.
  • Chi phí và ngân sách. Các nhóm truyền thông có thể gửi âm thanh tinh tế nhanh hơn với ngân sách nhỏ hơn.
  • Tốc độ và tỷ lệ. Các hệ thống hướng tới khách hàng có thể xử lý các tương tác bằng giọng nói ở quy mô lớn hơn.

coi chừng

  • Rủi ro lạm dụng giọng nói và mạo danh sẽ tăng lên khi thiếu sự đồng ý.
  • Độ chính xác có thể giảm đối với các giọng, phương ngữ hoặc môi trường ồn ào.
  • Âm thanh tổng hợp có thể bị nhầm lẫn với lời nói đích thực nếu không có nhãn rõ ràng.

Các bước tiếp theo

  1. Nhận được sự đồng ý rõ ràng để thu âm, sao chép và tái sử dụng giọng nói.
  2. Kiểm tra chất lượng trên nhiều loa và điều kiện nền khác nhau.
  3. Xác định khi nào con người phải xem xét hoặc phê duyệt kết quả đầu ra.
  4. Dán nhãn âm thanh tổng hợp và lưu giữ hồ sơ xuất xứ để đảm bảo trách nhiệm giải trình.

Nguồn tham khảo và đọc thêm

  1. arXivAudioLM: a Language Modeling Approach to Audio Generation
  2. Google Research BlogAudioLM: a Language Modeling Approach to Audio Generation
  3. arXivSoundStream: An End-to-End Neural Audio Codec
  4. arXivw2v-BERT: Combining Contrastive Learning and Masked Language Modeling for Self-Supervised Speech Pre-Training
  5. arXivSoundStorm: Efficient Parallel Audio Generation

Tiếp tục khám phá

Bản tin miễn phí

Nhận bản tóm tắt AI hàng ngày

Ba câu chuyện AI đã được xác minh vào mỗi buổi sáng các ngày trong tuần, được viết bằng tiếng Anh đơn giản. Miễn phí mãi mãi, không có quảng cáo.

Một email mỗi ngày trong tuần. Hủy đăng ký trong một cú nhấp chuột. Chúng tôi không bao giờ bán hoặc chia sẻ địa chỉ của bạn.

Tự kiểm tra

Take the AudioLM quiz

Phản hồi tức thì về mọi câu trả lời và chứng chỉ có thể chia sẻ với ID có thể xác minh sau khi bạn vượt qua khóa học.

Bắt đầu bài kiểm tra

Hỗ trợ giáo dục AI miễn phí. AI Understanding là tổ chức phi lợi nhuận 501(c)(3) — không bao giờ có quảng cáo, không có tường phí. Hãy quyên góp

Câu hỏi thường gặp

AudioLM là gì?

AudioLM is a Google Research system, first described in September 2022, that generates realistic speech and piano music by treating audio as a sequence of discrete tokens and predicting them with language models. Trained on audio alone, without transcripts, it continues a 3-second voice prompt in the same voice and style, and its token hierarchy became a template for later audio generators.

AudioLM sử dụng ý tưởng cốt lõi nào để tạo ra âm thanh?

AudioLM chuyển đổi dạng sóng thành các mã thông báo riêng biệt và dự đoán chúng một cách tuần tự, áp dụng cách tiếp cận mã thông báo tiếp theo của mô hình ngôn ngữ cho âm thanh thô.

Vai trò của mã thông báo 'ngữ nghĩa' trong AudioLM là gì?

Mã thông báo ngữ nghĩa (từ w2v-BERT) mã hóa cấu trúc và sự mạch lạc cấp cao, trong khi mã thông báo âm thanh xử lý chi tiết âm thanh tốt.

Bộ giải mã thần kinh nào tạo ra mã thông báo âm thanh của AudioLM?

SoundStream sử dụng lượng tử hóa vectơ dư để nén âm thanh thành mã thông báo âm thanh và sau đó giải mã mã thông báo được dự đoán thành dạng sóng.

AudioLM yêu cầu dữ liệu đào tạo gì?

Một tính năng đáng chú ý là AudioLM đào tạo hoàn toàn bằng âm thanh mà không có bất kỳ nhãn văn bản nào, học cấu trúc trực tiếp từ âm thanh.

After AudioLM predicts semantic tokens, how does its hierarchical generation add acoustic detail?

The paper’s hierarchy proceeds from semantic tokens to coarse and then fine acoustic tokens; this stage ordering is distinct from the semantic representation’s role.