Redact PII in Audio with Make and AssemblyAI

Redact PII in Audio with Make and AssemblyAI

Redact PII in Audio with Make and AssemblyAI

Make (previously Integromat) is a workflow automation device that permits you to combine numerous providers with out requiring coding data. With the AssemblyAI app for Make you need to use our AI fashions to course of audio knowledge by transcribing it with speech recognition fashions, analyzing it with audio intelligence fashions, and constructing generative options on prime of it with LLMs.

In this tutorial, you may create a Make state of affairs that watches a Google Drive folder for brand spanking new audio information, after which creates each a transcript and an audio file during which PII is redacted.

Redact PII in Audio with Make and AssemblyAI

Note

We’re utilizing Google Drive because the supply of audio information, however you might pull them from any supply together with e.g. AWS S3. If the audio information have already got public URLs, you need not add them to AssemblyAI.

Build a PII redaction state of affairs

Sign up or log into your Make account.

Create a brand new state of affairs and set the Google Drive Watch Files in a Folder because the set off.
If that is the primary time you are making a Google Drive module, you may must create a brand new connection and choose it.
Configure the set off to observe a selected folder in your Google Drive the place you’ll add your audio information. Let’s assume this folder is known as media.

Redact PII in Audio with Make and AssemblyAI

Next, add a Google Drive Download a File module related to the set off, and configure the File ID with the File ID from the set off.

Redact PII in Audio with Make and AssemblyAI

Right-click on the connection between the set off and Download a File module, and click on on Set up a filter. Configure the filter situation in order that it’s true when the file identify doesn’t comprise the phrase "redacted".

Redact PII in Audio with Make and AssemblyAI

Later, when your state of affairs is totally constructed, your state of affairs will add the redacted transcript and audio again to Google Drive. As a outcome, these uploaded redacted information will set off your state of affairs once more, however you do not wish to run the state of affairs for the information which have been redacted already.

Add an AssemblyAI Upload a File module, to the Download a File module you simply outlined. The Google Drive file ought to routinely be chosen.
If that is the primary time you added an AssemblyAI module, you may must create a connection and choose it.

Redact PII in Audio with Make and AssemblyAI

Add an AssemblyAI Transcribe an Audio File module. Since this module has a variety of parameters, I like to recommend clicking on the three dots button after which clicking on Collapse all.

Redact PII in Audio with Make and AssemblyAI

Pass the Uploaded File URL from the earlier module to the Audio URL parameter.

Redact PII in Audio with Make and AssemblyAI

Configure the PII redaction mannequin by setting the next parameters:

  • Set Redact PII to Yes
  • Set Redact PII Audio to Yes
  • Configure at the least on PII coverage within the Redact PII Policies listing
Redact PII in Audio with Make and AssemblyAI

Add an AssemblyAI Get Redacted Audio of a Transcript and cross the transcript ID from the Transcribe an Audio File module to the Transcript ID parameter.

Redact PII in Audio with Make and AssemblyAI

Create a Google Drive Create a File from Text module and configure the parameters:

  • Set New textual content File Location to the media folder
  • Set File Name to the Original Filename from the Google Drive Download a File module, however substitute the file extension of the file identify with redacted.txt
  • Set File Content to the Text property from the AssemblyAI Transcribe an Audio File module
Redact PII in Audio with Make and AssemblyAI

Warning

The Transcribe an Audio File module output has a number of Text properties, a few of that are nested inside different objects and arrays. Use the Text property from the foundation of the output.

Redact PII in Audio with Make and AssemblyAI

Warning

The output you see from the Transcribe an Audio File module is pattern knowledge if you have not run the state of affairs earlier than. Once the state of affairs has run, it’s going to use actual knowledge.

Add a Google Drive Upload a File module and configure the parameters:

  • Set New Folder Location to media
  • Select Map underneath the File parameter
    • Set File Name to the Original Filename from the Google Drive Download a File module, however substitute the file extension of the file identify with redacted.mp3
    • Set Data to the redacted_audio_file property from the Get Redacted Audio of a Transcript module.
Redact PII in Audio with Make and AssemblyAI

Your state of affairs is full. Save it and let’s try it out.

Go to Google Drive and add an audio file to the media folder. Now, swap again to your Make state of affairs and click on the Run as soon as button. Here’s a pattern audio file of a cellphone name that you need to use.
Once your state of affairs is completed, you must see the transcript and redacted audio file seem in your Google Drive folder.

Conclusion

You simply realized the way to construct a Make state of affairs that redacts PII from audio information from Google Drive. Instead of Google Drive, you might plug in different file providers, CRMs, or wherever you retailer your audio information, so long as there’s an app accessible in your service in Make to obtain and add your information.

You can do much more with the AssemblyAI app. You can use further speech recognition options, analyze your audio with audio intelligence fashions, and construct generative options with LeMUR. Check out the AssemblyAI app for Make documentation to study extra.

HI-FI News

through News, Tutorials, AI Research https://ift.tt/dbkNoeW

April 23, 2024 at 11:10PM