How to Detect Users Microphone in Unity | Microphone Don't Scream Detection Tutorial

Поділитися
Вставка
  • Опубліковано 2 лис 2023
  • 🚨 Wishlist Revolocity on Steam! store.steampowered.com/app/27... 🚨 🎮 Speed up your game-dev workflow with Synty Studios packs! syntystore.com/45b3b
    Free assets: drive.google.com/open?id=1IGm...
    Massive thanks to @ValemTutorials video helping me figure out how to detect microphone loudness: • How to Use Your Voice ...
    @markiplier video: • DON'T SCREAM (literally)
    VCR Font: www.dafont.com/vcr-osd-mono.font
    Don't Scream game: store.steampowered.com/app/24...
    📁 Get access to my tutorial project files over on Patreon: / danpos
    💬 Join in with the Blender and Game Dev conversation over on The GameDev Den Discord Server: / discord
    Check out these top Unity assets:
    New On Asset Store:
    assetstore.unity.com/top-asse...
    Top Paid Packages:
    assetstore.unity.com/top-asse...
    Top Downloaded Packages:
    assetstore.unity.com/top-asse...
    Top Free Assets:
    assetstore.unity.com/top-asse...
    Asset Store Partners:
    assetstore.unity.com/lists/as...
    Video Music Provided by EpidemicSound: www.epidemicsound.com/referra...
    *These are affiliate links which means I receive a small commission if you decide to buy something - the price will be no different to you though! I would massively appreciate any support :) *
  • Ігри

КОМЕНТАРІ • 17

  • @Eqqs
    @Eqqs 7 місяців тому +2

    Nice one Dan!

  • @DanPos
    @DanPos  7 місяців тому +1

    This is a reupload due to the old version having very quiet audio !

  • @user-vc6ij7cx8k
    @user-vc6ij7cx8k 5 місяців тому +1

    Can you recreate the mechanisems from fears of fathom ironbark lookout ?

  • @soulist8224
    @soulist8224 6 місяців тому

    How do you make the 'scream detected' into jumpscare/trigger?

    • @DanPos
      @DanPos  6 місяців тому +1

      Where you turn the text on youd instead want to use some sort of event to fire off which your trigger can listen for

    • @soulist8224
      @soulist8224 6 місяців тому

      @@DanPos can you give me the time stamp for the script part?

    • @DanPos
      @DanPos  6 місяців тому +1

      @@soulist8224 around the 50:00 mark

    • @soulist8224
      @soulist8224 6 місяців тому

      @@DanPos thank you so much 🙌

  • @eijiyoshikawa2525
    @eijiyoshikawa2525 5 місяців тому

    Sound detection has been made, now how do you do it so that when the sound detection exceeds the threshold limit, the player dies? I don't understand how to add the script so that the player dies when it detects screaming. Pleasee bro i need it that script, where script C# can i add and what should i add?

    • @DanPos
      @DanPos  5 місяців тому

      In the place where the threshold is met you'd want an event that fires, then whatever needs to listen out for it can do. For example your player script listen for it then dies

    • @eijiyoshikawa2525
      @eijiyoshikawa2525 5 місяців тому

      @@DanPos OK, I'll try, because I'm working on a project for my thesis. but I made a mobile version. thanks bro

    • @eijiyoshikawa2525
      @eijiyoshikawa2525 2 місяці тому

      Do u have short tutorial? I need ur help pls for my college thesis ​@@DanPos

  • @4zzzzzzaaa
    @4zzzzzzaaa 5 місяців тому +1

    Hi, I rewrote all the scripts exactly as shown in the video, but there were errors in Unity. 1 error; Assets\Scripts\MicrophoneSilektor.cs(11,19): error CS0246: The type or namespace name 'UnityAction' could not be found (are you missing a using directive or an assembly reference?) 2 error; Assets\Scripts\FillFrom Microphone.cs(20,19): error CS0246: The type or namespace name 'UnityAction' could not be found (are you missing a using directive or an assembly reference?) please help me fix these errors. Thank you in advance.

    • @DanPos
      @DanPos  5 місяців тому

      You're likely missing a using statement for unity action. Need to put using UnityEngine.Events at the top of your script

    • @4zzzzzzaaa
      @4zzzzzzaaa 5 місяців тому

      After adding UnityEngine.Events an error appeared in the upper part of the code in the editor: Assets\Scripts\FillFromMicrophone.cs(20,19): error CS0246: Could not find the type or name of the namespace 'UnityAction' (are you missing the using directive or assembly reference?)@@DanPos

    • @DanPos
      @DanPos  5 місяців тому

      @@4zzzzzzaaa it's the same error. If you read the error it says what's wrong, the namespace can't be found

    • @4zzzzzzaaa
      @4zzzzzzaaa 5 місяців тому

      OK thanks ​@@DanPos