#!/bin/bash

dir="/home/ok/Desktop/mobile_audio/"

# Initialize an empty string
files=""

# Loop over all .wav files in the directory
for filename in "$dir"/*.wav; do
    # Get the base name of the file
    base=$(basename "$filename" .wav)
    
    # Append the base name to the string
    if [ -z "$files" ]; then
        files="$base"
    else
        files="$files,$base"
    fi
done

# Print the string
echo "$files"
