Custom sound: Speaker profile
Register voices from the Dashboard or with SpeakerProfileApi so speech analysis names known speakers, plus the limits that apply.
Custom sound: Speaker profile registers a person’s voice so Cochl.Sense can identify them by name in any speech analysis result. A voice that matches no profile is reported as Unknown 0, Unknown 1, …, numbered to match its diarization label (SPEAKER_00, SPEAKER_01, …).
Speaker profiles are available on Cochl.Sense Pro projects only.
Registering speaker profiles needs speaker recognition to be enabled for your organization. Contact support@cochl.ai to have it turned on before you rely on profiles; until then every speaker comes back as Unknown 0, Unknown 1, … (details).
1. Create a Cochl.Sense Pro project
If you don’t have one yet, follow Get your project key and create a project (or use the Default project every account starts with).
2. Register a profile
Two registration paths—via the Dashboard, or programmatically with SpeakerProfileApi. Pick whichever fits your flow.
2.1 Via the Dashboard
On the Dashboard, open Speaker Profiles under Account in the sidebar and click Add speaker. The same dialog opens from the Speech analysis page: click Add speaker next to the names under Speaker Profiles in the run settings (Add a voice when there are none yet). In that one dialog you can register a voice two ways, and mix them:
- Record — record takes in the browser.
- Upload — drop audio files of the same speaker.
Record: enter the name shown in results, then press the red record button and speak. A take is at least 2 seconds and at most 30; press Stop to end it. Each take is added to the list below, where you can play it back or remove it. Record as many takes as you need (5–20 work best), then click Save speaker.
Upload: enter the name, and drag in audio files (5–20 are recommended). They should all be of the same speaker, in conditions similar to where you’ll use the profile (same microphone, room type, language). Click Save speaker to upload. Using a name that already exists adds the samples to that speaker.
2.2 Via the Python library
If you want to register and manage profiles from code — for example, to onboard speakers as part of your own app’s signup flow — use SpeakerProfileApi. It runs against your organization (not a single project), so the constructor takes your organization key, not a project key.
from cochl.sense import SpeakerProfileApi
def main():
api = SpeakerProfileApi('YOUR_ORGANIZATION_KEY')
# Register a new voice from an audio file (returns None on success).
api.add_new_voice('SPEAKER_NAME', 'AUDIO_FILE_PATH')
# List every speaker registered under this organization.
speakers = api.list_all_speakers()
print(speakers)
# Find the single best-matching speaker for a whole file (no Integration job needed).
match = api.recognize('AUDIO_FILE_PATH')
print(match['speaker'], match['score'])
# Remove a profile and all of its voices (returns None on success).
# Uncomment to run — this deletes the profile registered above.
# api.remove('SPEAKER_NAME')
if __name__ == '__main__':
main()What each method returns:
| Method | Returns |
|---|---|
add_new_voice(speaker, file_path) | None. Call it again with the same name to add more voices to that speaker. |
list_all_speakers() | A list with one entry per registered speaker in the organization. |
recognize(file_path) | One best match for the whole file: {"speaker": ..., "score": ..., "org_pub_id": ...}. speaker is Unknown when no profile matches. |
remove(speaker) | None. Deletes the speaker and all of their registered voices. |
Each method raises CochlSenseException when the request fails (Error codes → §6.2).
Speaker names may only contain letters, digits, and underscores (_), up to 50 characters — see §6 Limitations for the full naming rule and other constraints.
You can find your organization key (shown as Account key) at the bottom of the Speaker Profiles page on the Dashboard (under Account in the sidebar).
cochlearai/cochl-sense-py
More runnable sample scripts.
3. Verify the profile
Profiles appear on the Speaker Profiles page with their creation date and total registered audio length; open one to see and play its voice samples. The page also surfaces is_compatible — false (shown as Needs re-upload) means a model upgrade has invalidated the profile and you should re-register.
4. Run speech analysis with profiles
Profiles take effect automatically. Upload any file with speech analysis enabled — registered speakers will be matched and named in the transcript. Voices that match no profile come back as Unknown 0, Unknown 1, … (details).
{
"speaker": "SPEAKER_02",
"speaker_name": "Anna_Kim",
"speaker_score": 0.42,
"transcript": "Let's review the agenda.",
"start_time": "00:12.40",
"end_time": "00:14.90",
"start_time_sec": 12.4,
"end_time_sec": 14.9
}When a voice doesn’t match any registered profile, speaker_name is Unknown <n>, numbered to match the diarization label in speaker (SPEAKER_00 → Unknown 0) — stable within a single file but not across files. speaker_score is still a number: the similarity to the closest profile, or -1.0 if the organization has no profiles yet. See speech analysis → Transcription output for the full field list.
5. Check the result on the Dashboard
Once a profile is registered, open Speech analysis under Project and run an audio file. The result has two tabs:
- Speech analysis—per-utterance transcript with speaker labels. Registered speakers appear under their profile name; unmatched voices appear as
Unknown 0,Unknown 1, … - JSON—the raw result
The JSON tab holds the raw payload of every analysis that ran; Copy JSON and Result (JSON) in the Export menu export it.
6. Best practices & limitations
Best practices
- 5–20 samples is the sweet spot. Fewer hurts accuracy; more doesn’t help proportionally.
- Match conditions. Use the same kind of microphone and acoustic environment as your target uploads.
- Single speaker per profile. Don’t mix voices into one profile.
- Re-register after model upgrades. When
is_compatibleflips tofalse, the underlying voice model has changed and the profile needs to be re-registered before recognition will use it again.
Limitations
- Speaker names: letters, digits, and underscores (
_) only — no spaces, hyphens, periods, or other punctuation. Letters and digits from any script are accepted (김민지andAnna_Kimare valid;Anna KimandAnna-Kimare not). Keep names to 50 characters or fewer — that is the stored length. - Voice files: up to 10 MB each with the Python library (checked by the library; the server doesn’t check file size or duration). A take recorded in the Dashboard is at most 30 seconds.
- Samples per speaker: up to 20 (5–20 recommended — see Best practices above). The 21st is rejected with
max voices (20) exceeded for speaker '<name>'. - Speakers per organization: up to 50 total. Registering a 51st is rejected with
max speakers (50) exceeded for organization. - Supported audio formats: same as the rest of Cochl.Sense Pro — see Getting Started → Additional notes.
See Error codes → §5 speaker recognition errors for every error message and how it’s returned.
See also
- Speech analysis—feature overview, output schema, and best practices
- Custom sound: Sound events—the other custom sound type. Available on Cochl.Sense Core only, for training new sound tags.
Last updated
Need help? Contact support@cochl.ai
For Cochl.Sense Pro, include the job_id and the time of the request (with time zone).

