Giter VIP home page Giter VIP logo

fsvoicebubble's Introduction

FSVoiceBubble

Version License Platform

A short light-weight voice bubble to let you:

  1. Play a short audio
  2. Show wave effect while playing
  3. Customize your own style(wave color、bubble image .etc)

Screenshots

It's strong enough to be embedded into tableView

fsvoicebubble-tableview

A Colorful Example

fsvoicebubble-style

Installation

  • cocoapods:
pod "FSVoiceBubble"
  • manually: Drag all Classes under Pod/Classes into your project. Drag FSVoiceBubble.bundle(Pod/Assets) into your project.

Usage

#import "FSVoiceBubble.h"

The header file is quite clear:)

@interface FSVoiceBubble : UIView

@property (strong, nonatomic) NSURL   *contentURL;
@property (strong, nonatomic) IBInspectable UIColor *waveColor;
@property (strong, nonatomic) IBInspectable UIColor *animatingWaveColor;
@property (strong, nonatomic) IBInspectable UIImage *bubbleImage;
@property (assign, nonatomic) IBInspectable BOOL    invert;
@property (assign, nonatomic) IBInspectable BOOL    exclusive;
@property (assign, nonatomic) IBInspectable BOOL    durationInsideBubble;
@property (assign, nonatomic) IBOutlet id<FSVoiceBubbleDelegate> delegate;

- (void)prepareToPlay;
- (void)play;
- (void)pause;
- (void)stop;

- (void)startAnimating;
- (void)stopAnimating;

@end

@protocol FSVoiceBubbleDelegate <NSObject>

- (void)voiceBubbleDidStartPlaying:(FSVoiceBubble *)voiceBubble;

@end

Notice

  • The purpose for this lib is to play short voice files. Don't try to play an audio longer the 60 seconds
  • Only support local file at this moment.

Requirements

iOS7.0

Author

Wenchao Ding, [email protected]

License

FSVoiceBubble is available under the MIT license. See the LICENSE file for more info.

fsvoicebubble's People

Contributors

wenchaod avatar

Watchers

James Cloos avatar  avatar

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.