# AutoencoderSAME The **SAME** (Semantically-Aligned Music Encoder) autoencoder is used by [Stable Audio 3](https://stability.ai/news/stable-audio-3) to compress stereo audio waveforms into a compact latent sequence and reconstruct them. The encoder stacks [`SAMETransformerResamplingBlock`] modules, each of which groups a fixed number of audio patch frames and produces one learnable output token via a differential transformer. The decoder inverts this process, expanding each latent token back to a patch of audio frames. A soft-norm bottleneck (`SoftNormBottleneck`) normalises latents before and after the diffusion model, providing stable training dynamics. ## AutoencoderSAME [[autodoc]] AutoencoderSAME - all - encode - decode ## SAMETransformerResamplingBlock [[autodoc]] models.autoencoders.autoencoder_same.SAMETransformerResamplingBlock ## AutoencoderSAMEOutput [[autodoc]] models.autoencoders.autoencoder_same.AutoencoderSAMEOutput ## AutoencoderSAMEDecoderOutput [[autodoc]] models.autoencoders.autoencoder_same.AutoencoderSAMEDecoderOutput