Skip to content

notoroid/SimpleAudioRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleAudioRecord

Sample code demonstrating audio recording features for iOS using SwiftUI.

Overview

This is a sample code project providing minimal audio recording functionality. This repository demonstrates basic implementation patterns and is not intended for production use.

Features

  • Real-time audio recording with visual level monitoring
  • Saves only the most recent recording (previous recordings are automatically deleted)
  • WAV format only (PCM Int16, 44.1kHz)
  • Support for various audio input devices (iPhone microphone, AirPods, Bluetooth devices)
  • Simple playback of recorded audio
  • SwiftUI-based user interface

Technologies

Built with SwiftUI and AVFoundation framework for iOS. Utilizes AVAudioEngine for real-time audio processing, AVAudioSession for device management, and AVAudioPlayer for playback. Implements @Observable macros for state management with comprehensive error handling and thread-safe audio queue processing.

Requirements

  • iOS 16.0+
  • Xcode 15.0+
  • Swift 5.9+

Limitations

  • Only supports WAV format (.wav files with PCM Int16 encoding)
  • Saves only the last recording (no recording history)
  • Minimal support - basic functionality only
  • Temporary file storage (files are deleted when app is terminated)

Screenshot

SimpleAudioRecord

Installation

  1. Clone this repository
git clone https://github.com/notoroid/SimpleAudioRecord.git
  1. Open SimpleAudioRecord.xcodeproj in Xcode

  2. Build and run on your device or simulator

Usage

  1. Grant microphone permission when prompted
  2. Tap the record button to start recording
  3. Tap again to stop recording
  4. Use the play button to listen to your recording

License

MIT License - See LICENSE file for details

Author

Kaname Noto (@notoroid)

Notes

This is sample code for learning purposes. For production applications, consider implementing:

  • Multiple recording format support (AAC, MP3, etc.)
  • Recording history management
  • Persistent storage
  • Advanced audio processing features
  • Comprehensive error handling and recovery

About

Sample code demonstrating audio recording features for iOS26+ using SwiftUI. SwiftUIを使用したiOS26以降で利用可能なオーディオ録音向けの機能についてまとめたサンプルコード。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages