VoiceMemosClone A clone for Apple's Voice Memos app.
Article on Medium.
Please read the article on how I created this project here.
License
Freely provided under the MIT License.
Please read the article on how I created this project here.
Freely provided under the MIT License.
concertino_ios Concertino is a classical music front-end for Apple Music. It's splitted in several projects. This one provides only the iOS app. (Ther
Podverse Podverse is an open source podcast manager for iOS, Android, and web. Check us out at podverse.fm! Free features: Subscribe to podcasts Auto-
Swift Radio Swift Radio is an open source radio station app with robust and professional features. This is a fully realized Radio App built entirely i
About YouTag is an iOS music player app that downloads music from the internet, even YouTube, and manages it in a local library. Music videos can also
MuVis MuVis is an open-source multiplatform app (using SwiftUI, Swift, and Xcode) for music visualization. It renders informative (and musically usefu
Swift Radio Swift Radio is an open source radio station app with robust and professional features. This is a fully realized Radio App built entirely i
WPRK(iOS & iPadOS) Radio & Podcast Streaming App For WPRK, a licensed FCC broadcast station, The app allows users to connect to live music streams and
ChordDetector A tiny menu bar app that listens iTunes and Spotify to detect chords of songs! Demo Features iTunes and Spotify support. Saves up to 20
PlayStatus is a simple macOS app that allows the control of Spotify, Apple Music(macOS 10.15+) and iTunes including iTunes Radio/Beats1 playback from
I can successfully record and write files but every now and then (around 10% of the times) it fails and the file ends up with 0 seconds length. It doesn't throw an error anywhere, just the file is empty.
I'm happy to help and even submit a PR but I'm a bit stuck and I don't really know where to move on.
Hello sir,
I am getting below error while recording audio in foreground
Error: required condition is false: [AVAudioIONodeImpl.mm:1064:SetOutputFormat: (format.sampleRate == hwFormat.sampleRate)]
Xcode :11.4.1 Language swift 4.2 MacOS: Catalina version 10.15.5 Iphone : 8plus iphone Os: 13.3.1
Below is my code:
File name: RecorderViewContrlloer
let settings = [AVFormatIDKey: kAudioFormatLinearPCM, AVLinearPCMBitDepthKey: 16, AVLinearPCMIsFloatKey: true, AVSampleRateKey: Float(16000.0), AVNumberOfChannelsKey: 1] as [String : Any]
self.recordingTs = NSDate().timeIntervalSince1970
self.silenceTs = 0
do {
let session = AVAudioSession.sharedInstance()
try session.setCategory(.playAndRecord, mode: .default)
try session.setActive(true)
} catch let error as NSError {
print(error.localizedDescription)
return
}
let inputNode = self.audioEngine.inputNode
guard let format = self.format() else {
return
}
// let format = inputNode.inputFormat(forBus: 0)
inputNode.installTap(onBus: 0, bufferSize: 512, format: format) { (buffer, time) in
let level: Float = -50
let length: UInt32 = 1024
buffer.frameLength = length
let channels = UnsafeBufferPointer(start: buffer.floatChannelData, count: Int(buffer.format.channelCount))
var value: Float = 0
vDSP_meamgv(channels[0], 1, &value, vDSP_Length(length))
var average: Float = ((value == 0) ? -100 : 20.0 * log10f(value))
if average > 0 {
average = 0
} else if average < -100 {
average = -100
}
let silent = average < level
print(self.audioEngine.manualRenderingSampleTime)
let ts = NSDate().timeIntervalSince1970
self.totLTs = ts
if ts - self.renderTs > 0.1 {
let floats = UnsafeBufferPointer(start: channels[0], count: Int(buffer.frameLength))
let frame = floats.map({ (f) -> Int in
return Int(f * Float(Int16.max))
})
DispatchQueue.main.async
{
self.renderTs = ts
let len = self.audioView.waveforms.count
for i in 0 ..< len {
let idx = ((frame.count - 1) * i) / len
let f: Float = sqrt(1.5 * abs(Float(frame[idx])) / Float(Int16.max))
self.audioView.waveforms[i] = min(49, Int(f * 50))
}
self.audioView.active = !silent
self.audioView.setNeedsDisplay()
}
}
let write = true
if write {
if self.audioFile == nil {
self.audioFile = self.createAudioRecordFile()
}
if let f = self.audioFile {
do {
try f.write(from: buffer)
} catch let error as NSError {
print(error.localizedDescription)
}
}
}
}
do {
recorder = try AVAudioRecorder(url: self.fileUrl(), settings: settings)
recorder?.delegate = self
recorder?.isMeteringEnabled = true
recorder?.prepareToRecord()
self.audioEngine.prepare()
try self.audioEngine.start()
} catch let error as NSError {
print(error.localizedDescription)
return
}
self.updateUI(.recording)
}
Above is my code of recording. Application is crash on inputNode.installTap(onBus: 0, bufferSize: 512, format: format) { (buffer, time) in
And give error like above mention
We have to deploy the application so please suggest and guide us for this issue
Look forward to hearing from you soon.. Regards Akash
Does it work only if AVFormatIDKey = kAudioFormatLinearPCM and file format ".wav" ? I tried changing to kAudioFormatAppleLossless and ".m4a" format and its not working.
While recording I'm able to see the waves, but there is no change in the waves according to voice. Its static always. Please correct me if I'm wrong anywhere.
Voice overlay helps you turn your user's voice into text, providing a polished UX while handling for you the necessary permissions. It uses i
Preview On screeen: In reality: English: Another Allows you to customize Siri. Only for Jailbreak users. Compiling Theos is required to compile the pr
iOS framework that enables detecting and handling voice commands using microphone. Built using Swift with minumum target iOS 14.3.
애플뮤직 클론 코딩 패스트캠퍼스 iOS 앱 개발 올인원 패키지 Online 클론코딩 사용요소 UICollectionReusableView , c
Spotify Clone Its a Spotify clone created using SwiftUI. Deployment To deploy th
Audio Indicator Bars for iOS and tvOS Indicates for your app users which audio is playing. Just like the Podcasts app. Index Requirements and Details
SpotifyClone An iOS app that visually clones Spotify's app and consumes the official Spotify's Web API to show(and play) songs, podcasts, artists and
FDWaveformView is an easy way to display an audio waveform in your app. It is a nice visualization to show a playing audio file or to select a position in a file.
Beautiful Music Player app built using SwiftUI to demonstrate Neumorphic design pattern ?? and MVVM architecture ?? . Made with love ❤️ by Sameer Nawaz
AudioKit Synth One We've open-sourced the code for this synthesizer so that everyone is able to make changes to the code, introduce new features, fix