bastienfalcou / soundwave Goto Github PK
View Code? Open in Web Editor NEWIllustrate your sound waves on the fly ๐
License: MIT License
Illustrate your sound waves on the fly ๐
License: MIT License
The error occurred when I tried to initialize the view like below
AudioVisualizationView(frame: CGRect(x: 0.0, y: 0.0, width: 300.0, height: 500.0)))
Hi,
thank you for sharing this! I've included SoundWave in my new project. While doing so, I had a hard time to save and process recordings without the caf container. After investigating, I found that it is necessary to specify the file extention to accomplish this (see this answer on SO.
Thanks again
hello
how i can update player current time by dragging left and right the wave view
Hello ,
Thanks for your library.
I want to use this as a progress bar and successfully integrate, now the issue is that when progress will fill with gradiant, i dont want that, so is that possible to remove this without making any change in the pod file?
Please find attachment, how i used as a progress bar.
When I run the example project it doesn't do anything. I start talking but it doesn't display anything.
We are trying to use this library in a react-native project. Is there an Android alternative with similar UI?
Hi
Could you please fix RunLoopMode.defaultRunLoopMode
in Chronometer.swift to resolve compilation errors
Thanks
Hi, thanks for your library. I assumed that's it is possible to read sound file in this library and produce graphic representation from it. However it looks like I need to get level numbers (from 0 to 1.0) by some other mean. Just wanted to confirm, does this library supports this feature?
If it doesn't maybe I can try to build it and make a pull request. Can't guarantee anything. In this case please mark this as Enhancement request.
Hello,
Actually, I am using this library through pod. The sound wave is drawing in simulator but not in real device. Please help me on this.
iPhone: 6s Plus
ios: 14.4
Hello.
I'm using the gihub source you shared.
It is working fine.
I have one question.
It is not an error.
Is it possible to change from source as I'm currently intending?
If you can change it, we would appreciate your help.
Waves are not showing correctly . I am using the code shows below
` self.audioVisualizationView.gradientStartColor = .audioVisualizationPurpleGradientStart
self.audioVisualizationView.gradientEndColor = .audioVisualizationPurpleGradientEnd
//self.audioVisualizationView.
// Do any additional setup after loading the view.
self.audioVisualizationView.audioVisualizationMode = .read
self.audioVisualizationView.meteringLevels = [0.1, 0.67, 0.13, 0.78, 0.31]
//self.audioVisualizationView.scaleSoundDataToFitScreen()
guard let url = Bundle.main.url(forResource: "Aln", withExtension: "mp3") else { return }
self.audioPlayer = AVAudioPlayer(contentsOf: url)
self.audioVisualizationView.play(for: self.audioPlayer!.duration)
`
Is the correct way.. ?
Could you add Swift Package Manager support?
How could I add this library to a swiftUI project?
Is there a way to use SoundWave for showing the meter levels instead of scrolling from left to right, like the siri voice visualizer works:
https://www.youtube.com/watch?v=48KmpYO255E
If I have have a frame height of 70 the bars are nearly not visible. I need to have a frame height of around 300 for them to be clearly visible.
Great plugin, could we get a 0.1.5 version tagged from Master? Wanted to use the meteringLevelBarSingleStick
and would prefer not pinning to master if possible. Thanks :)
i am recording a voice and want to show sound wave for it but i am getting audioRecorder.averagePower(forChannel: 0)
but i am getting value less then zero and greater then 1 and you library need values from 0 to 1
how can i convert this value ?
When building with xCode version 9.4 (9F1027a) I get the following error:
Check dependencies:
Unable to run command 'StripNIB AudioVisualizationView.nib' - this target might include its own product.
Unable to run command 'StripNIB AudioVisualizationViewiphone.nib' - this target might include its own product.ipad.nib' - this target might include its own product.
Unable to run command 'StripNIB AudioVisualizationView
Hi,
Is there any way to create waveform from the existing audio file? I mean I would like to download a audio file and create the waveform from this source.
Best.
In both cases app stars, showing wave view, but never show any waves in it.
Tested on iPhone 7 and iPhone XR
iOS 13.3
Xcode 11.3.1
Hi. @bastienFalcou I have a question :) ..
How can I remove white lines in the middle of a level meter?
The sample what I want as follows.
Thank you for your answer ๐
Could we change the speed of the wave according to when i change the rate(speed) of the Audio?
How can i use this project in swift 3?
Source code: SoundWave > Example
2020-09-18 11:10:14.462710+0700 SoundWave_Example[10288:210560] PropertyID=1667788144 is NULL
2020-09-18 11:10:14.528267+0700 SoundWave_Example[10288:210901] HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range
2020-09-18 11:10:14.528370+0700 SoundWave_Example[10288:210901] HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range
2020-09-18 11:10:14.570488+0700 SoundWave_Example[10288:210901] [aqme] AQME.h:254:IOProcFailure: AQDefaultDevice (1): output stream 0: null buffer
2020-09-18 11:10:14.570693+0700 SoundWave_Example[10288:210901] [aqme] AQMEIO_HAL.cpp:1774:IOProc: EXCEPTION thrown (-50): error != 0
2020-09-18 11:10:29.464374+0700 SoundWave_Example[10288:210776] [aqme] AQMEIO.cpp:179:AwaitIOCycle: timed out after 15.000s (0 1); suspension count=0 (IOSuspensions: )
2020-09-18 11:10:29.464608+0700 SoundWave_Example[10288:210776] CA_UISoundClient.cpp:241:StartPlaying_block_invoke: CA_UISoundClientBase::StartPlaying: AddRunningClient failed (status = -66681).
2020-09-18 11:10:29.539397+0700 SoundWave_Example[10288:211142] HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range
2020-09-18 11:10:29.539517+0700 SoundWave_Example[10288:211142] HALB_IOBufferManager_Client::GetIOBuffer: the stream index is out of range
2020-09-18 11:10:29.582672+0700 SoundWave_Example[10288:211142] [aqme] AQME.h:254:IOProcFailure: AQDefaultDevice (1): input stream 0: null buffer
(lldb)
Help me in this
hi ,
I tried to add Audio Visualization View inside cell in UITable view when did selected row is triggered the Audio sound played correctly but the Audio Visualization View does not display any chart its keeps blank
here is my code : -
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let cell = tableView.dequeueReusableCell(withIdentifier: "AudioCellidentifier", for: indexPath as IndexPath) as! AudioCell
let audio = audioFiles![indexPath.row]
let metringLevels = audio.MetringLevels.sorted(byKeyPath: "order", ascending : true)
var metrLevel :[Float] = []
for ( metringLevel ) in metringLevels {
metrLevel.append(metringLevel.level)
}
let fileUrl = NSURL(string: audio.fileUrl)! as URL
do {
viewModel.currentAudioRecord = SoundRecord(audioFilePathLocal: fileUrl , meteringLevels: metrLevel)
let duration = try self.viewModel.startPlaying()
cell.audioVisualizationView.audioVisualizationMode = .read
cell.audioVisualizationView.meteringLevels = metrLevel
cell.audioVisualizationView.play(for: duration)
} catch {
self.showAlert(with: error)
}
tableView.deselectRow(at: indexPath, animated: true)
}
any suggestion ?
Could you add a rewind using the swipe wave?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.