Coder Social home page Coder Social logo

soundwave's People

Contributors

bastienfalcou avatar spectraldragon avatar zsteed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

soundwave's Issues

Recommendation: Add file extention in demo application

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

Modification in the current code

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.

Thank you.
attachment

Example not working

When I run the example project it doesn't do anything. I start talking but it doesn't display anything.

Question about rotation.

Hello! Could you please tell me how I can rotate the AudioVisualizationView by 90 degrees?
I have tried soundWaveView.transform = CGAffineTransform(rotationAngle: -CGFloat.pi / 2.0)
But it works only if the height and width are equel to each other.
Please, see attachments.
Thank you.
image
image

Android Alternative?

We are trying to use this library in a react-native project. Is there an Android alternative with similar UI?

iOS 12 SDK

Hi
Could you please fix RunLoopMode.defaultRunLoopMode in Chronometer.swift to resolve compilation errors
Thanks

Build metering levels array from audio file?

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.

Question

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 not showing while playing uploaded songs

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.. ?

Screenshot 2019-04-02 at 2 33 29 PM

0.1.5 release for Carthage

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 :)

sound wave from recording voice

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 ?

PodSpec configuration issue

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.
Unable to run command 'StripNIB AudioVisualizationView
ipad.nib' - this target might include its own product.

Playing existing audio files

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.

Neither Example nor pod version do not work

  1. Downloaded newest example: fail
  2. Added pod to my project: fail

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

Played range color

Hey, I want to know how can I change the color of range that is already played?

explain

Speed

Could we change the speed of the wave according to when i change the rate(speed) of the Audio?

iOS Crash: CrashIfClientProvidedBogusAudioBufferList when record

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)

image

Example is not working

Hello,
today i open the
IMG_0183
Example and run it on my iphone 7 plus , it's not working. i am not testing in simulator.
Please help me out. because i need to use this in my app ASAP.
Refer below Screenshot

Thanks

Audio Visualization View not displayed if it's inside UITable Cell

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 ?

Rewind

Could you add a rewind using the swipe wave?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.