Skip to content
pubscout

v_chat_voice_player

5.0.1, released 2 weeks ago by vchatsdk.com

Voice message playback widget with animated waveform, speed controls, and user avatars.

$ flutter pub add v_chat_voice_player
Source repository

What it does

Provides a customizable voice message player widget for chat applications with play/pause controls, interactive seek bars, speed adjustment, and animated wave visualizers. Supports multiple audio sources including URLs, local files, and byte arrays.

AI-written summary of version 5.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are building a chat application and need to display voice messages.
  • You require customizable voice waveforms and playback speed controls.

Skip it when

  • You need background audio playback or a full-featured music player.
  • You are recording audio rather than playing it back.

Strengths

  • Includes animated waveform visualization and interactive seeking.
  • Supports speed control, avatars, and extensive styling configurations.
  • Cross-platform support across mobile, web, and desktop.

Weaknesses

  • Seeking is not supported when loading audio from byte sources.
  • Strictly tailored for chat voice messages rather than general audio streaming.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
4

Requires v_platform as a dependency alongside v_chat_voice_player.

import 'package:flutter/material.dart';
import 'package:v_chat_voice_player/v_chat_voice_player.dart';
import 'package:v_platform/v_platform.dart';

class MyVoiceMessage extends StatefulWidget {
  @override
  _MyVoiceMessageState createState() => _MyVoiceMessageState();
}

class _MyVoiceMessageState extends State<MyVoiceMessage> {
  late VVoiceMessageController controller;

  @override
  void initState() {
    super.initState();
    controller = VVoiceMessageController(
      id: 'voice_001',
      audioSrc: VPlatformFile.fromUrl(
        networkUrl: 'https://example.com/voice.mp3',
      ),
    );
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return VVoiceMessageView(
      controller: controller,
    );
  }
}

Alternatives

Packages that do the same job and could replace v_chat_voice_player.

  • just_audio

    If you need a robust, low-level audio player for general audio streaming, playlists, or complex audio routing instead of a pre-built chat voice widget.

Works with

Packages commonly used together with v_chat_voice_player: ones it builds on, ones built on it, and its own family.