Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5987275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:47:29+00:00 2026-05-22T22:47:29+00:00

How do I concatenate two .wav files in R? I’ve checked sound and audio

  • 0

How do I concatenate two .wav files in R?
I’ve checked sound and audio packages and I still don’t know how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:47:29+00:00Added an answer on May 22, 2026 at 10:47 pm

    Have you tried appendSample(s1, s2, ...) with saveSample(s, filename, overwrite) in sound package (CRAN) ?

    appendSample:

    Description:
        Append two or more Sample objects or wav files.
    Usage:
        appendSample(s1, s2, ...)
    Arguments:
        s1, s2, ... Sample objects, or the names of wav files.
    Details:
        If the samples have different sample parameters (bits, rate and channels),
        the command fitSampleParameters is called to adjust them before the sample
        are appended.
    Value:
        a Sample object with the samples played one after the other.

    saveSample:

    Description:
        Save a Sample object to disk as a wav file.
    Usage:
        saveSample(s, filename, overwrite=FALSE)
    Arguments:
        s           a Sample object.
        filename    a string giving the path and the name of the destination file.
        overwrite   logical. If FALSE and filename already exists, an error
                    will be reported. Otherwise the old file will be deleted.

    Example commands:

    > sample = appendSample('/home/grzegorz/file1.wav', '/home/grzegorz/file2.wav')
    > saveSample(sample, '/home/grzegorz/output.wav', overwrite=FALSE)
    

    I downloaded two sample wav files and it works (wavs are concatenated). Of course you need to install sound library to do that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just attempting to concatenate two strings in C and I don't know
What's the simplest way to concatenate two WAV files in Java 1.6? (Equal frequency
I am trying to concatenate two video files with the gnonlin components of the
If I use Dos command copy to concatenate two files: copy a1.txt + a2.txt
I am wanting to concatenate two nodeset values using XPath in XForms. I know
I need to concatenate two files. I use Ant's exec for this purpose, but
I have 2 wav files that I want to concatenate into one file with
A friend of mine just used plain-old cat to concatenate two mp3 files,... cat
I know it is possible in php to concatenate two strings like $a .=
I have to concatenate these two strings from my resource/value files: <string name=Toast_Memory_GameWon_part1>you found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.