Home Blog Page 2

Basis-sec-8B-Instruct: Out-of-the-Field Safety Copilot


After we launched Llama-3.1-FoundationAI-SecurityLLM-base-8B (Basis-sec-8B) in April, we proved that an eight-billion-parameter mannequin—educated completely on safety information—can outperform general-purpose LLMs many instances its dimension on cybersecurity benchmarks. Practitioners liked the outcomes, but they stored asking:

“Can I work together with it like ChatGPT—no additional scaffolding, simply immediate and go?”

Now you possibly can. Llama-3.1-FoundationAI-SecurityLLM-instruct-8B (Basis-sec-8B-Instruct) layers instruction fine-tuning on prime of our domain-focused base mannequin, supplying you with a chat-native copilot that understands safety context and follows natural-language instructions straight out of the field.

  • Instruction following — Basis-sec-8B-Instruct obeys on a regular basis prompts for summarization, question-answering, sentiment evaluation, and inventive textual content technology with none additional fine-tuning.
  • Position consciousness — It understands system, person, and assistant roles, enabling multi-turn chats, retrieval-augmented technology, and agent-style purposes.
  • Compact footprint — A 4K-token context window lets Basis-sec-8B-Instruct run on a single, high-memory GPU whereas we push towards for much longer home windows.
  • Open-source and light-weight — Like its sibling, Basis-sec-8B-Instruct ships as absolutely open weights beneath a permissive license—sufficiently small for on-prem, air-gapped, or edge deployments with out vendor lock-in.

Basis-sec-8B-Instruct delivers heavyweight safety efficiency in an eight-billion-parameter kind issue. In impartial evaluations, it outperforms bigger fashions whereas remaining sufficiently small to run on a single high-memory GPU.

Benchmark Basis-sec-8B-Instruct Llama-3.1-8B-Instruct Llama-3.1-70B-Instruct GPT-4o-mini
CTI-RCM 0.692 0.558 0.623 0.655

Simply as importantly, Basis-sec-8B-Instruct maintains sturdy general-language efficiency on broad assessments corresponding to MMLU. Meaning it will possibly fluidly clarify menace habits, assist long-form investigation narratives, and reply naturally in chat workflows—with out compromising its safety focus or demanding outsized infrastructure.

Safety Operations Facilities (SOC) face relentless alert noise, fragmented tooling, and power staffing gaps. In pilots throughout Cisco CSIRT and Cisco XDR, Basis-sec-8B-Instruct classifies alerts, maps observables to MITRE ways, reconstructs timelines, and drafts investigation stories—chopping false positives and accelerating triage so analysts can deal with actual threats.

Software Safety (AppSec) groups juggle code critiques, menace fashions, and red-team planning with restricted skilled bandwidth. Early deployments at SBG Product Safety, Meraki, and the S&TO Net-Software Safety group use Basis-sec-8B-Instruct to simulate assault paths, generate threat-model diagrams, overview code towards OWASP tips, and craft customized payloads, shifting work from reactive fixes to proactive design.

As a result of Basis-sec-8B-Instruct is instruction-tuned, most workflows want solely a well-crafted immediate or a easy retrieval template—no further coaching loop required.

Basis-sec-8B-Instruct is a milestone, however it’s removed from the ultimate vacation spot. Our roadmap focuses on unlocking richer context, tighter construction, and broader information modalities, so the mannequin will have the ability to deal with each artifact defenders depend on—with out bolting on additional infrastructure. Within the close to time period you possibly can count on:

  • Longer context home windows — 16K+ tokens for full playbooks, SBOMs, and log bundles
  • Structured interplay — Schema-validated JSON, express perform calling, and even code or binary technology
  • Multimodal inputs — Logs, packet captures, screenshots, and different artifacts in a single dialog
  • Subsequent-generation fashions — A reasoning-optimized eight billion-parameter variant and a forthcoming seventy billion-parameter mannequin
  • Seize the weightsObtain Basis-sec-8B-Instruct on Hugging Face and run it on-prem, in safe cloud enclaves, or in air-gapped labs—no licensing constraints.
  • Observe the recipes — The Basis AI Cookbook provides deployment guides, retrieval templates, and agent examples.
  • Be a part of the neighborhood — Pilot new workflows, contribute prompts or fine-tunes, and feed your findings again into the open-source ecosystem.

Basis-sec-8B-Instruct is reside, open, and able to defend. Obtain it, immediate it, and assist form the way forward for AI-powered cybersecurity.

Contributors: Sajana Weerawardhena, Paul Kassianik, Blaine Nelson, Baturay Saglam, Anu Vellore, Aman Priyanshu, Supriti Vijay, Massimo Aufiero, Fraser Burch, Arthur Goldblatt, Konstantin Goldin, Alie Fordyce, Dhruv Kedia, Zhouran Yang, Ed Li, Jianliang He, Kojin Oshiba, Yaron Singer, Amin Karbasi


We’d love to listen to what you assume! Ask a query and keep linked with Cisco Safety on social media.

Cisco Safety Social Media

LinkedIn
Fb
Instagram
X

Share:



Fats Molecule Could Management How You Really feel Emotion – NanoApps Medical – Official web site


Key Questions Answered

Q: What did researchers uncover in regards to the serotonin 5-HT1A receptor?
A: They mapped the way it prompts totally different mind signaling pathways, providing perception into how temper and emotion are regulated on the molecular stage.

Q: Why does this matter for antidepressants and antipsychotics?
A: Understanding this receptor’s exact habits might help design faster-acting and extra focused remedies with fewer uncomfortable side effects.

Q: What shocking aspect performs a key function in receptor perform?
A: A phospholipid — a fats molecule in cell membranes — acts like a co-pilot, serving to steer how the receptor behaves, a first-of-its-kind discovery.

Abstract: Scientists have uncovered how the mind’s 5-HT1A serotonin receptor—very important in temper regulation—features on the molecular stage. This receptor, a typical goal of antidepressants and psychedelics, prefers sure signaling pathways regardless of the drug, however medicine can nonetheless range in how strongly they activate them.

The research additionally recognized a shocking helper: a phospholipid molecule that subtly guides receptor habits. These findings might result in extra exact remedies for melancholy, anxiousness, and psychosis.

Key Information

  • Biased Signaling: 5-HT1A favors sure pathways, no matter drug.
  • Lipid Affect: A membrane fats molecule helps management receptor exercise.
  • Drug Design Perception: Findings open door to extra focused psychiatric therapies.

Supply: Mount Sinai Hospital

In a discovery that would information the event of next-generation antidepressants and antipsychotic medicines, researchers on the Icahn Faculty of Medication at Mount Sinai have developed new insights into how a important mind receptor works on the molecular stage and why that issues for psychological well being remedies.

The research, revealed within the August 1 on-line concern of Science Advances, focuses on the 5-HT1A serotonin receptor, a significant participant in regulating temper and a typical goal of each conventional antidepressants and newer therapies corresponding to psychedelics.

Utilizing revolutionary lab strategies, the analysis group found that the 5-HT1A receptor is inherently wired to favor sure mobile signaling pathways over others—whatever the drug used to focus on it.

Regardless of its scientific significance, this receptor has remained poorly understood, with a lot of its molecular and pharmacological properties largely understudied—till now.

“This receptor is sort of a management panel that helps handle how mind cells reply to serotonin, a key chemical concerned in temper, emotion, and cognition,” says senior writer Daniel Wacker, PhD, Assistant Professor of Pharmacological Sciences, and Neuroscience, on the Icahn Faculty of Medication at Mount Sinai.

“Our findings make clear how that management panel operates—what switches it flips, the way it fine-tunes indicators, and the place its limits lie. This deeper understanding might assist us design higher therapies for psychological well being situations like melancholy, anxiousness, and schizophrenia.”

Utilizing revolutionary lab strategies, the analysis group found that the 5-HT1A receptor is inherently wired to favor sure mobile signaling pathways over others—whatever the drug used to focus on it.

Nonetheless, medicine can nonetheless affect the power with which these pathways are activated. For instance, the antipsychotic asenapine (model identify Saphris) was discovered to selectively have interaction a particular signaling route attributable to its comparatively weak exercise on the receptor.

To discover these mechanisms in larger element, the researchers mixed experiments in lab-grown cells with high-resolution cryo-electron microscopy—a cutting-edge imaging expertise that reveals molecular constructions at near-atomic decision. Their work targeted on how numerous medicine activate the 5-HT1A receptor and the way the receptor interacts with inner signaling proteins referred to as G proteins.

Completely different signaling pathways managed by the 5-HT1A receptor are linked to totally different facets of temper, notion, and even ache. As scientists higher perceive which pathways are activated, and the way, they’ll extra exactly design medicine that deal with particular signs or situations with out undesirable uncomfortable side effects.

“Our work offers a molecular map of how totally different medicine ‘push buttons’ on this receptor—activating or silencing particular pathways that affect mind perform,” says research first writer Audrey L. Warren, PhD, a former pupil in Dr. Wacker’s lab who’s now a postdoctoral researcher at Columbia College.

“By understanding precisely how these medicine work together with the receptor, we will begin to predict which approaches may result in more practical or focused remedies and which of them are unlikely to work. It’s a step towards designing next-generation therapies with larger precision and fewer uncomfortable side effects.”

In a very shocking discovering, the researchers found {that a} phospholipid—a sort of fats molecule present in cell membranes—performs a significant function in steering the receptor’s exercise, virtually like a hidden co-pilot. That is the primary time such a task has been noticed among the many greater than 700 recognized receptors of this sort within the human physique.

Whereas present antidepressants usually take weeks to work, scientists hope this new understanding of 5-HT1A signaling might assist clarify these delays and result in faster-acting options.

“This receptor could assist clarify why customary antidepressants take lengthy to work,” says Dr. Wacker.

“By understanding the way it features at a molecular stage, we now have a clearer path to designing quicker, more practical remedies, not only for melancholy, but additionally for situations like psychosis and persistent ache. It’s a key piece of the puzzle.”

Subsequent, the analysis group plans to dig deeper into the function of the phospholipid “co-factor” and to check how their lab-based findings maintain up in additional complicated experiments. They’re additionally engaged on turning these discoveries into real-world compounds that would turn into future psychiatric medicines, constructing on their earlier success with drug candidates derived from psychedelics.

The paper is titled “Structural determinants of G protein subtype selectivity on the serotonin receptor 5-HT1A.”

The research’s authors, as listed within the journal, are Audrey L. Warren, Gregory Zilberg, Anwar Abbassi, Alejandro Abraham, Shifan Yang, and Daniel Wacker.

Funding: This work was supported by NIH grant GM133504. Additional help got here from NIH T32 Coaching Grant GM062754 and DA053558 and NIH F31 fellowship MH132317.

In crowded observability market, Gartner calls out AI capabilities, price optimization, DevOps integration



Help for OpenTelemetry and open requirements is one other differentiator for Gartner. Distributors that embrace these frameworks are higher positioned to supply extensibility, keep away from vendor lock-in, and allow broader ecosystem integration. This openness is paired with a rising concentrate on price optimization—an more and more essential concern as telemetry information volumes enhance. Leaders provide granular information retention controls, tiered storage, and usage-based pricing fashions to assist prospects

Gartner additionally highlights the significance of the developer expertise and DevOps integration. Observability leaders present “integration with different operations, service administration, and software program improvement applied sciences, akin to IT service administration (ITSM), configuration administration databases (CMDB), occasion and incident response administration, orchestration and automation, and DevOps instruments.”

On the automation entrance, observability platforms ought to help initiating adjustments to software and infrastructure code to optimize price, capability or efficiency—or to take corrective motion to mitigate failures, Gartner says. Leaders should additionally embody software safety performance to determine recognized vulnerabilities and block makes an attempt to take advantage of them.

Gartner identifies observability leaders

This yr’s report highlights eight distributors within the leaders class, all of which have demonstrated sturdy product capabilities, stable expertise execution, and modern strategic imaginative and prescient. Learn on to study what Gartner thinks makes these eight distributors (listed in alphabetical order) stand out as leaders in observability:

  • Chronosphere: Strengths embody price optimization capabilities with its management airplane that carefully manages the ingestion, storage, and retention of incoming telemetry utilizing granular coverage controls. The platform requires no brokers and depends largely on open protocols akin to OpenTelemetry and Prometheus. Gartner cautions that Chronosphere has not emphasised AI capabilities in its observability platform and presently affords digital expertise monitoring by way of partnerships.
  • Datadog: Strengths embody intensive capabilities for managing service-level goals throughout information sorts and offering deep visibility into system and software habits with out the necessity for instrumentation. Gartner notes the seller’s licensing mannequin that may make it difficult for patrons to barter contracts, and the price of the product stays a priority amongst Gartner prospects. Gartner additionally notes that its tightly built-in ecosystems could make the associated fee and complexity of integrating with non-Datadog instruments a problem.
  • Dynatrace: Strengths embody AI-powered automation and root-cause evaluation as a part of Dynatrace’s AI engine Davis, which might mechanically uncover and map advanced software environments, determine efficiency anomalies, and pinpoint the exact reason for issues lowering handbook effort and MTTR. Gartner warns that new prospects would possibly require onboarding help as a result of sheer variety of options and depth of knowledge out there. Small to midsize prospects may also be challenged to justify the price of Dynatrace.
  • Elastic: Strengths embody Elastic’s AI assistant that helps customers determine points and discover options shortly by querying giant volumes of knowledge in a pure language format, and its open-source platform differentiates Elastic from different distributors. Gartner cautions that Elastic’s observability platform isn’t well-known and requires a substantial degree of in-house technical experience. Additionally, the seller’s pricing mannequin makes estimating and forecasting utilization tough as information volumes develop, Gartner warns.
  • Grafana Labs: Strengths embody Grafana’s price administration capabilities that allow prospects to manage prices by lowering the ingestion of unused or unimportant telemetry, and its intensive footprint lets prospects select a location based mostly on latency necessities and information sovereignty wants. Gartner cautions that prospects will want coaching to make sure they will maximize the worth of the platform’s capabilities, and that operations groups should vet and handle third-party elements and community-driven plugins.
  • IBM Instana: Strengths embody IBM’s important presence inside enterprises globally, and Instana is a part of the identical software program group that accommodates Apptio and HashiCorp, which might create an enterprise bundle for IT operations and automation. IBM additionally expanded its information middle and cloud supplier help to incorporate extra areas and deployment choices. Gartner cautions that IBM launched fewer new and modern AI options in 2024 in comparison with different leaders evaluated, and small or midsize prospects are much less more likely to take into account IBM, pondering it’s suited to bigger enterprises.
  • New Relic: Strengths embody a “forward-looking imaginative and prescient for agentic orchestration,” a standardized API for agent integration, and a rising library of specialised brokers, which allow clever, cross-platform automation. New Relic additionally enhanced its product portfolio with giant language mannequin (LLM) observability, price controls, and enhancements to its generative AI interface. Gartner cautions that New Relic’s consumption pricing can lead to larger-than-expected prices for shoppers.
  • Splunk (a Cisco firm): Strengths embody Cisco’s broad world presence and the mix of Splunk and Cisco supplies a deep experience and a robust consumer base in lots of trade verticals. Gartner additionally notes the intensive investments Cisco and Splunk have made in AI throughout its complete portfolios, particularly rolling out its Cisco AI Assistant to function with its observability options. Gartner cautions that as a result of Splunk’s observability portfolio has grown via a number of acquisitions, it additionally has restricted integration throughout its merchandise, creating complexity.

Within the remaining quadrants, Gartner names 4 challengers, 4 visionaries and 4 area of interest gamers. The report explains every vendor’s background and particulars strengths and cautions for the entire included corporations. The complete report is offered on Gartner’s web site, in addition to from distributors (akin to right here and right here).

A Practitioner-Targeted DevSecOps Evaluation Strategy


Success in a DevSecOps enterprise hinges on delivering worth to the tip consumer, not merely finishing intermediate steps alongside the best way. Organizations and packages usually wrestle to attain this attributable to a wide range of elements, reminiscent of an absence of clear possession and accountability for the aptitude to ship software program, practical siloes versus built-in groups and processes, lack of efficient instruments for groups to make use of, and an absence of efficient sources for group members to leverage to rapidly rise up to hurry and enhance productiveness.

An absence of a central driving drive may end up in siloed items inside a given group or program, fragmented resolution making, and an absence of outlined key efficiency metrics. Consequently, organizations could also be hindered of their capability to ship functionality on the velocity of relevance. A siloed DevSecOps infrastructure, the place disjointed environments are intertwined to type an entire pipeline, causes builders to expend vital effort to construct an utility with out the help of documentation and steerage for working throughout the supplied platforms. Groups can’t create repeatable options within the absence of an end-to-end built-in utility supply pipeline. With out one, effectivity suffers, and pointless practices lavatory down all the course of.

Step one in reaching the worth DevSecOps can carry is to grasp how we outline it:

a socio-technical system made up of a group of each software program instruments and processes. It isn’t a computer-based system to be constructed or acquired; it’s a mindset that depends on outlined processes for the fast growth, fielding, and operations of software program and software-based methods using automation the place possible to attain the specified throughput of creating, fielding, and sustaining new product options and capabilities.

DevSecOps is thus a mindset that builds on automation the place possible.

The target of an efficient DevSecOps evaluation is to grasp the software program growth course of and make suggestions for enhancements that may positively influence the worth, high quality, and velocity of supply of merchandise to the tip consumer in an operationally steady and safe method. A complete evaluation of present capabilities should embrace each quantitative and qualitative approaches to gathering information and figuring out exactly the place challenges reside within the product supply course of. The scope of an evaluation should think about all processes which can be required to subject and function a software program product as a part of the worth supply processes. The aperture by which a DevSecOps evaluation group focuses its work is wider than the instruments and processes sometimes regarded as the software program growth pipeline. The evaluation should embody the broader context of all the product supply pipeline, together with planning levels, the place functionality (or worth) wants are outlined and translated into necessities, in addition to post-deployment operational phases. This wider view permits an evaluation group to find out how nicely organizations ship worth.

There are a myriad of overlapping influences that may trigger dysfunction inside a DevSecOps enterprise. Trying from the surface it may be troublesome to peel again the layers and successfully discover the foremost causes. This weblog focuses on the right way to conduct a DevSecOps evaluation with an method that makes use of 4 methodologies to investigate an enterprise from the angle of the practitioner utilizing the instruments and processes to construct and ship precious software program. Taking the angle of the practitioner permits the evaluation group to floor probably the most instantly related challenges going through the enterprise.

A 4-Pronged Evaluation Methodology

To border the expertise of a practitioner, a complete evaluation requires a layered method. This sort of method will help assessors collect sufficient information to grasp each the total scope and the precise particulars of the builders’ experiences, each optimistic and damaging. We take a four-pronged method:

  1. Immersion: The evaluation group immerses itself into the event course of by both creating a small, consultant utility from scratch, becoming a member of an current growth group, or different technique of gaining firsthand expertise and perception within the course of. Avoiding particular therapy is vital to assemble real-world information, so the evaluation group ought to use means to grow to be a “secret shopper” wherever attainable. This additionally permits the evaluation group to determine what the true, not simply documented, course of is to ship worth.
  2. Statement: The evaluation group instantly observes current utility growth groups as they work to construct, check, ship, and deploy their functions to the tip customers. Observations ought to cowl as a lot of the value-delivery course of as practicable, reminiscent of consumer engagement, product design, dash planning, demos, retrospectives, and software program releases.
  3. Engagement: The evaluation group conducts interviews and targeted dialogue with growth groups and different related stakeholders to make clear and collect context for his or her expertise and observations. Ask the practitioners to point out the evaluation group how they work.
  4. Benchmarking: The evaluation group captures out there metrics from the enterprise and its processes and compares them with anticipated outcomes for related organizations.

To attain this, an evaluation group can use ethnographic analysis strategies as described within the Luma Institute Innovating for Individuals System. Interviewing, fly-on-the-wall remark, and contextual inquiry enable the evaluation group to look at product groups working, conduct follow-up interviews about what they noticed, and ask questions on habits and expectations that they didn’t observe. By utilizing the walk-a-mile immersion method, the evaluation group can communicate firsthand to their experiences utilizing the group’s present instruments and processes.

These strategies assist be sure that the evaluation group understands the method by getting firsthand expertise and doesn’t overly depend on documentation or the biases of remark or engagement topics. Additionally they allow the group to higher perceive what they’re observing or listening to about from different practitioners and establish the facets of the worth supply course of the place enhancements are extra possible available.

The two Dimensions of Assessing DevSecOps Capabilities

To precisely assess DevSecOps processes, one wants each quantitative information (e.g., metrics) to pinpoint and prioritize challenges primarily based on influence and qualitative information (e.g., expertise and suggestions) to grasp the context and develop focused options. Whereas the evaluation methodology mentioned above supplies a repeatable method for gathering the mandatory quantitative and qualitative information, it isn’t adequate as a result of it doesn’t inform the assessor what information is required, what inquiries to ask, what DevSecOps capabilities are anticipated, and so on. To deal with these questions whereas assessing a corporation’s DevSecOps capabilities, the next dimensions needs to be thought-about:

  • a quantitative evaluation of a corporation’s efficiency in opposition to educational and trade benchmarks of efficiency
  • a qualitative evaluation of a corporation’s adherence to established greatest practices of high-performing DevSecOps organizations

Inside every dimension, the evaluation group should take a look at a number of essential facets of the worth supply course of:

  • Worth Definition: How are consumer wants captured and translated into merchandise and options?
  • Developer Expertise: Are the instruments and processes that builders are anticipated to make use of intuitive, and do they cut back toil?
  • Platform Engineering: Are the instruments and processes nicely built-in, and are the suitable facets automated?
  • Software program Growth Efficiency: How efficient and environment friendly are the event processes at constructing and delivering practical software program?

Since 2013, Google has revealed an annual DevSecOps Analysis and Evaluation (DORA) Speed up State of DevOps Report. These reviews assemble information from hundreds of practitioners worldwide and compile them right into a complete report breaking down four-to-five key metrics to find out the general state of DevSecOps practices throughout all kinds of enterprise sorts and sectors. An evaluation group can use these reviews to rapidly key in on the metrics and thresholds that analysis has proven to be vital indicators of total efficiency. Along with the DORA metrics, the evaluation group can conduct a literature seek for different publications that present metrics associated to a selected software program architectural sample, reminiscent of real-time resource-constrained cyber-physical methods.

To have the ability to evaluate a corporation or program to trade benchmarks, such because the DORA metrics or case research, the evaluation group should have the ability to collect organizationally consultant information that may be equated to the metrics discovered within the given benchmark or case research. This may be achieved in a mix of the way, together with gathering information manually because the evaluation group shadows the group’s builders or stitching collectively information collected from automated instruments and interviews. As soon as the info is collected, visualizations such because the determine under might be created to point out the place the given group or program compares to the benchmark.

From a qualitative perspective, the evaluation group can use the SEI’s DevSecOps Platform Unbiased Mannequin (PIM), which incorporates greater than 200 necessities one would count on to see in a high-performing DevSecOps group. The PIM permits packages to map their present or proposed capabilities onto the set of capabilities and necessities of the PIM to make sure that the DevSecOps ecosystem into account or evaluation implements the most effective practices. For assessments, the PIM supplies the aptitude for packages to seek out potential gaps by wanting throughout their present ecosystem and processes and mapping them to necessities that specific the extent of high quality of outcomes anticipated. The determine under exhibits an instance abstract output of the qualitative evaluation by way of the ten DevSecOps capabilities outlined throughout the PIM and total maturity degree of the group beneath evaluate. Confer with the DevSecOps Maturity Mannequin for extra data relating to the usage of the PIM for qualitative evaluation.

Charting Your Course to DevSecOps Success

By using a multi-faceted evaluation methodology that mixes immersion, remark, engagement, and benchmarking, organizations can acquire a holistic view of their DevSecOps functionality. Leveraging benchmarks just like the DORA metrics and reference architectures just like the DevSecOps PIM supplies a structured method to measuring efficiency in opposition to trade requirements and figuring out particular areas for enchancment.

Purposefully taking the angle of the practitioners tasked with utilizing the instruments and processes to ship worth helps the assessor focus their suggestions for enhancements on the areas which can be prone to have the best influence on the supply of worth in addition to establish these facets of the method that detract from the supply of worth.

Keep in mind, the journey in the direction of a high-performing DevSecOps atmosphere is iterative, ongoing, and targeted on delivering worth to the tip consumer. By making use of data-driven quantitative and qualitative strategies in performing a two-dimensional DevSecOps evaluation, an evaluation group is nicely positioned to establish unbiased observations and make actionable strategic and tactical suggestions. Common assessments are very important to trace progress, adapt to evolving wants, and make sure you’re constantly delivering worth to your finish customers with velocity, safety, and effectivity.

swift – Find out how to report in stereo at 48kHz utilizing AVAudioEngine and AVAudioSession on iOS?


I am engaged on an iOS recording app utilizing AVAudioEngine and AVAudioSession. The aim is to report in stereo at 48kHz utilizing the built-in iPhone microphone (on fashions that help stereo recording, like iPhone XS and up).

I’ve carried out full management over the audio session and mic configuration, together with choosing information sources and setting enter orientation, polar patterns, and pattern charges.

Right here’s the related code when establishing stereo recording:

if configuration.isStereo {
    attempt session.setPreferredSampleRate(16_000) // <- that is the one setting that constantly works
    attempt session.setPreferredInputNumberOfChannels(2)
    attempt session.setPreferredInputOrientation(.portrait)
    // choose the proper information supply and polar sample earlier than this
} else {
    attempt session.setPreferredSampleRate(48_000)
    attempt session.setPreferredInputNumberOfChannels(1)
}

Downside:

It doesn’t matter what I do, stereo enter all the time finally ends up utilizing 16kHz pattern charge. Even when I explicitly request 48_000 earlier than establishing the audio engine, it silently drops to 16_000.

Mono recordings work high quality at 48kHz.

Stereo recordings are all the time downsampled to 16kHz.

The enter format printed from inputNode.inputFormat(forBus: 0) confirms this.

I’ve verified the chosen enter information supply is “Framsida” (entrance mic), stereo is on the market, and polar sample is stereo. I am utilizing a safeSwitchInputConfiguration() helper that absolutely deactivates the session earlier than reconfiguring to keep away from race situations.

Right here’s a snippet from the logs:

Began recording with 2 ch @ 16000.0 Hz
Enter iPhone Mikrofon data-source: Non-obligatory("Framsida"), stereo-available: true

What I’ve Tried:

setPreferredSampleRate(48_000) earlier than/after activating the session.

Switching between .playAndRecord and .report session classes.

Attempting totally different enter orientations and polar patterns.

Deactivating/activating the session earlier than configuration adjustments.

Verified with a number of gadgets that help stereo enter.

Questions:

Is stereo at 48kHz really supported on iOS (particularly with the built-in mic)?

Has anybody managed to get 2ch @ 48000Hz from AVAudioEngine with AVAudioInputNode?

Might this be a {hardware} limitation or an undocumented OS constraint?

Is CoreAudio or AudioUnit a extra viable route for this?

Bonus Information:

I do see stereo-available: true, and I can change between “Framsida” and “Undertill” as enter information sources, and polar patterns like omnidirectional, subcardioid, and stereo can be found relying on the chosen supply.

Regardless of all that, the system nonetheless provides me 16kHz.

Any insights from anybody who’s cracked this is able to be vastly appreciated.