Rohan sheelvant

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • in reply to: Generating transfer function #973
    AvatarRohan sheelvant
    Participant

    Ok

    Thank you for your reply

    in reply to: problem with wios #946
    AvatarRohan sheelvant
    Participant

    Also, I tried to run the command: g++ wios-check.cpp -lasound -o wios-check

    but I got the following error :
    g++ wios-check.cpp -lasound -o wios-check
    wios-check.cpp:23:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:30:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:23:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:23:3: error: converting to ‘std::vector<_snd_pcm_access>’ from initializer list would use explicit constructor ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = _snd_pcm_access; _Alloc = std::allocator<_snd_pcm_access>; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = _snd_pcm_access; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<_snd_pcm_access>]’
    wios-check.cpp:30:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:30:3: error: could not convert ‘{SND_PCM_FORMAT_U8, SND_PCM_FORMAT_S16_LE, SND_PCM_FORMAT_S24_LE, SND_PCM_FORMAT_S32_LE}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<_snd_pcm_format>’
    wios-check.cpp:129:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:179:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:195:3: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:129:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:129:3: error: could not convert ‘{SND_PCM_ACCESS_MMAP_INTERLEAVED, SND_PCM_ACCESS_MMAP_NONINTERLEAVED, SND_PCM_ACCESS_MMAP_COMPLEX, SND_PCM_ACCESS_RW_INTERLEAVED, SND_PCM_ACCESS_RW_NONINTERLEAVED}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<_snd_pcm_access>’
    wios-check.cpp:179:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:179:3: error: could not convert ‘{SND_PCM_FORMAT_S8, SND_PCM_FORMAT_U8, SND_PCM_FORMAT_S16_LE, SND_PCM_FORMAT_S16_BE, SND_PCM_FORMAT_U16_LE, SND_PCM_FORMAT_U16_BE, SND_PCM_FORMAT_S24_LE, SND_PCM_FORMAT_S24_BE, SND_PCM_FORMAT_U24_LE, SND_PCM_FORMAT_U24_BE, SND_PCM_FORMAT_S32_LE, SND_PCM_FORMAT_S32_BE, SND_PCM_FORMAT_U32_LE, SND_PCM_FORMAT_U32_BE, SND_PCM_FORMAT_FLOAT_LE, SND_PCM_FORMAT_FLOAT_BE, SND_PCM_FORMAT_FLOAT64_LE, SND_PCM_FORMAT_FLOAT64_BE, SND_PCM_FORMAT_IEC958_SUBFRAME_LE, SND_PCM_FORMAT_IEC958_SUBFRAME_BE, SND_PCM_FORMAT_MU_LAW, SND_PCM_FORMAT_A_LAW, SND_PCM_FORMAT_IMA_ADPCM, SND_PCM_FORMAT_MPEG, SND_PCM_FORMAT_GSM, SND_PCM_FORMAT_SPECIAL, SND_PCM_FORMAT_S24_3LE, SND_PCM_FORMAT_S24_3BE, SND_PCM_FORMAT_U24_3LE, SND_PCM_FORMAT_U24_3BE, SND_PCM_FORMAT_S20_3LE, SND_PCM_FORMAT_S20_3BE, SND_PCM_FORMAT_U20_3LE, SND_PCM_FORMAT_U20_3BE, SND_PCM_FORMAT_S18_3LE, SND_PCM_FORMAT_S18_3BE, SND_PCM_FORMAT_U18_3LE, SND_PCM_FORMAT_U18_3BE, SND_PCM_FORMAT_G723_24, SND_PCM_FORMAT_G723_24_1B, SND_PCM_FORMAT_G723_40, SND_PCM_FORMAT_G723_40_1B, SND_PCM_FORMAT_DSD_U8, SND_PCM_FORMAT_DSD_U16_LE, SND_PCM_FORMAT_DSD_U32_LE, SND_PCM_FORMAT_DSD_U16_BE, SND_PCM_FORMAT_DSD_U32_BE}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<_snd_pcm_format>’
    wios-check.cpp:195:3: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
    };
    ^
    wios-check.cpp:195:3: error: could not convert ‘{5512, 8000, 11025, 16000, 22050, 32000, 44100, 48000, 64000, 88200, 96000, 176400, 192000}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<unsigned int>’
    wios-check.cpp: In constructor ‘AudioDevice::AudioDevice()’:
    wios-check.cpp:205:32: error: ‘nullptr’ was not declared in this scope
    AudioDevice(): name(“”), pcm(nullptr), hw_params(nullptr){
    ^
    wios-check.cpp: In destructor ‘AudioDevice::~AudioDevice()’:
    wios-check.cpp:208:15: error: ‘nullptr’ was not declared in this scope
    if(pcm != nullptr){
    ^
    wios-check.cpp:212:21: error: ‘nullptr’ was not declared in this scope
    if(hw_params != nullptr){
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::is_valid()’:
    wios-check.cpp:219:15: error: ‘nullptr’ was not declared in this scope
    if(pcm == nullptr){ return false; }
    ^
    wios-check.cpp:221:21: error: ‘nullptr’ was not declared in this scope
    if(hw_params == nullptr){ return false; }
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::open_device(std::__cxx11::string&, std::__cxx11::string&, std::__cxx11::string&, bool)’:
    wios-check.cpp:239:15: error: ‘nullptr’ was not declared in this scope
    if(pcm != nullptr){
    ^
    wios-check.cpp:263:13: error: ‘nullptr’ was not declared in this scope
    pcm = nullptr;
    ^
    wios-check.cpp:272:13: error: ‘nullptr’ was not declared in this scope
    pcm = nullptr;
    ^
    wios-check.cpp:281:13: error: ‘nullptr’ was not declared in this scope
    pcm = nullptr;
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::print_support_channels()’:
    wios-check.cpp:353:28: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + ” )”);
    ^
    wios-check.cpp: In member function ‘bool AudioDevice::print_support_rates()’:
    wios-check.cpp:406:28: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + ” )”);
    ^
    wios-check.cpp:411:28: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + “-” + std::to_string(max) + ” )”);
    ^
    wios-check.cpp:411:56: error: ‘to_string’ is not a member of ‘std’
    std::string s(“( ” + std::to_string(min) + “-” + std::to_string(max) + ” )”);

    in reply to: problem with wios #945
    AvatarRohan sheelvant
    Participant

    @Masayuki Takigahira: I checked arecord and aplay are working with my device.

    Also, I am sure that the default settings of wios are correct as the same recording device works fine using the wios command in another computer I am operating.

    Can you let me know what is the error?

    in reply to: problem with wios #941
    AvatarRohan sheelvant
    Participant

    @paul do let me know if you manage to get wios working.

    in reply to: problem with wios #940
    AvatarRohan sheelvant
    Participant

    Ok, thank you for the information

    in reply to: problem with wios #915
    AvatarRohan sheelvant
    Participant

    Yes, I am also facing the same error. I tried but was unsuccessful to figure out the problem.

    my command : wios -r -x 0 -d plughw:1,0 -c 6 -f 48000 -t 6 -o test.wav

    Please do let me know on this post if you find a solution.

    There is an alternative to wios. You can use Audacity software to record the multichannel audio data.

    in reply to: Harktool4 closing abruptly #914
    AvatarRohan sheelvant
    Participant

    Yes, this method will solve my problem.

    Thank you for your reply 🙂

    in reply to: Error on running localization network #902
    AvatarRohan sheelvant
    Participant

    Yes, the encountered error is solved

    in reply to: Error on running localization network #883
    AvatarRohan sheelvant
    Participant

    There was some error with the input audio file.

    in reply to: Harktool4 closing abruptly #879
    AvatarRohan sheelvant
    Participant

    Yes, I understand that if I select 0,1,2,3 then channels 1,2,3,4 will be used.

    But I want to use 2nd, 3rd, 4th and 5th channel of the 6 available channels.

    So, how do I proceed?

    in reply to: Harktool4 closing abruptly #853
    AvatarRohan sheelvant
    Participant

    Attached is the screenshot of the terminal error.

    in reply to: Node list not showing up in hark #842
    AvatarRohan sheelvant
    Participant

    Okay, I have found my mistake, I had kept the condition as an output so the network was not working.

    Thank You for your help

    in reply to: Node list not showing up in hark #841
    AvatarRohan sheelvant
    Participant

    One mistake I noticed, my MAIN_LOOP was on subnet. I have now changed it to iterator.

    Now after clicking the EXECUTE button, I get the status as stopped, Does this mean some error in the network?

    in reply to: Node list not showing up in hark #837
    AvatarRohan sheelvant
    Participant

    Earlier it did not have any packages, however, I just now checked again and it worked.

    I am now trying to record sound using HARK by following these steps https://www.hark.jp/document/2.4.0/hark-cookbook-en/subsec-LearningHARK-001.html
    and I am using this RASP device http://wiki.seeedstudio.com/ReSpeaker_Mic_Array_v2.0/ to record the audio.

    I have created the network for recording using HARK also set the parameters accordingly(I want to record a sound at 16KHz for 5 seconds). After setting the parameters I clicked the button EXECUTE. After this, I check the FILE button in HARK_developer and I could find 4 audio files named sep_0,1,2,3 (.wav). However, on playing these files I hear audio of less than a second and only some noise in it.
    [I have attached the relevant screenshots with this post]
    Can you please tell me if have made any mistake while building the network?

    I have checked my recording using audacity and all the mics are working fine.

Viewing 14 posts - 1 through 14 (of 14 total)